View Single Post
  #4 (permalink)  
Old May 1st, 2005, 09:27 PM
rjweers rjweers is offline
Friend of Wrox
Join Date: Nov 2004
Location: Seattle, WA, .
Posts: 248
Thanks: 0
Thanked 1 Time in 1 Post

You are correct... HOWEVER...

You could create a Master form. Then put the DataSheet view form and the single record form as subforms on that master.

Assuming that you want the single record form to display data from the selected record in the DataSheet view form, the trick then is how to link the item selected in the DataSheet form with the data in the single record form.

Actually, that's quite easy. In the OnCurrent event of the datasheet view, post the ID of the current record to a hidden text form on the master form. E.g.

Me.Parent.Form.txtHiddenID = Me.IDField

Then you Link the single record subform with that text field. NOTE: You can't use the wizard to set the Master and Child Link fields. You can type them in yourself.
Reply With Quote