I am creating my first database. I have a form “ContactData” with an unlinked subform “AddressBook”. What I have managed to do is to allow the user to flip through the Address Book until they find the address they want, then press a command button with the event procedure:
Me.Parent![Contact Last Name] = Me.Contact_last_name
Me.Parent![Address ID] = Me.ID
That links the last name and ID from the AddressBook subform to the last name and ID in the parent ContactData (I know this is redundant, but I was having trouble with DLookup). Now, the last name automatically appears in the parent form textbox but the ID textbox does not refresh until I move to the next parent record. Can I make them both automatically update within the button event procedure, and if so can you include the code, since I am having trouble with syntax?
Thanks!