Question : Datasheet view and drilldown

I am using 2007.

Lets say I have a 1:m form, with the one on top and the many down below.  The many part of the form is a grid. In the past, when I have had a situtation like this, and there were more columns than could fit on screen (in the grid) I would just have the user scroll to the right in order to see all the rest of the columns that don't naturally fit on screen, and do data entry that way, from the collumns on the grid.  

But, I think I need a more convenient way of doing data entry when dealing with the grid section of the form. I suppose one option is to give the user the ability to switch to form view for a given row in the grid; if that's possible. I suppose another is to allow the user to sort of drill down, or by click of some button, open up a modal or popup window with the data (for one record of the grid) is in form view; make changes there and when you close the form have those changes show up in the row of the grid that started it all.  Those were a lot of words.  I hope I am explaining myself clearly..

There must be a name for this kind of thing, but if there is, I don't know what it is.  I wish I had some examples or example code to give me a hint as to how to do it.  I seem to remember seeing a reference to doing this in one of my Access 2007 books, but I can't for the life of me find it, nor do I know what to lookup in the index.

If anyone could help or point me to some help it would be appreciated.

Answer : Datasheet view and drilldown

WoodrowA,

If I were you I would use what you called:
"a modal or popup window with the data (for one record of the grid) is in form view"
This is typically referred to as a linked form.

Fortunately there is a button wizard that will write all the code for you.

Create a Form in Single form view, that is based in the Subform's RecordSource.
Then, on your main form, drop in a button.
When the wizard opens, select: Form Operations-->Open form
Select your newly created form
Select: "Open the Form and find *Specific* data to display"
Click the common field from both forms, and click the <-> button
Select either text or a picture
Name your button

Now when you are on the main form and you click the button, the second form will open displaying only those "child" records associated with the "Parent" form.

JeffCoachman
Random Solutions  
 
programming4us programming4us