Question : Open a form going to a specific record based on an ID in subform

I have a form with  a subform on it. The subformt is a datasheet. I need a button to takes the user seleceted ID in the datasheet then click the button and open the emp form and go to that specific record.

Answer : Open a form going to a specific record based on an ID in subform

here is the answer:

DoCmd.OpenForm "empForm", acNormal
DoCmd.GoToRecord acDataForm, "iempform", acGoTo, empid
Random Solutions  
 
programming4us programming4us