T
turks67 via AccessMonster.com
How do I use textbox on a form to lookup a userid in a table to open another
form?
form?
Douglas J. Steele said:That very misleading error message can occur if you're mistyped the name of
the table or field in your DLookup statement, but I think in this case, Dave
may have left out the quotes. (I'm assuming that ID is a text field)
varUser = DLookup("ID", "UserTable", "ID = """ & Me.MyTextBox & """")
That's three double quotes in a row before the ampersand, and four double
quotes in a row at the end.