Hello All
I have a main form which has a subform. I need the subform information to populate into the subform according to a number on the main form. Currently I am trying dlookup to retrieve this information.
The main form has an Employee ID, I want the users to be able to copy and paste this ID and the information to populate accordingly.
I placed this code directly in the textbox but I receive a #Name? error.
I even tried to take out the Me! being that it's a form to no avail.
I need to do this for 11 textboxes on this subform with text and date properties.
Also, there may be an occurrence where there is more than one row of information for an ID. How would I code it to show each, using the subform navigation.
Can someone please help me?
Thanks!
I have a main form which has a subform. I need the subform information to populate into the subform according to a number on the main form. Currently I am trying dlookup to retrieve this information.
The main form has an Employee ID, I want the users to be able to copy and paste this ID and the information to populate accordingly.
I placed this code directly in the textbox but I receive a #Name? error.
Code:
Me![Claim Code].ControlSource=DLookup("[Claim Code]","[Claim Info]","[ID]='"&ID)&"'"
I even tried to take out the Me! being that it's a form to no avail.
I need to do this for 11 textboxes on this subform with text and date properties.
Also, there may be an occurrence where there is more than one row of information for an ID. How would I code it to show each, using the subform navigation.
Can someone please help me?
Thanks!