Arrgh! I’m trying to use a command button to open a form on a record based on a lookup table. The form opens but with a blank record.
TL;DR
For testing purposes I created two tables and two forms. Person Data table contains names & addresses, Books table contains titles and borrower name. Borrower name is a lookup table from Person Data. Added a command button (using the wizard) called “Info” to the Books form to open the Person Data Input form with the idea that it would show me the record. All I get is the form on a blank record (the record navigator at the bottom shows record 1 of 1(filtered)). When I set up a watch for the variable that is being sent to the OpenForm command I see that it is picking up the NameID from the lookup table so the expression ends up looking like “[Name]=’7′”. Clearly I need to do something else.
This first image shows the tables, forms, and VBA code:
The second image shows the output and the VBA watchlist
And another question: I see Me![fieldname] used regularly. What does the Me! signify? :newb:
Thanks for any help!