I am working on an add-on and i have a form with a combo box. if the
user picks one option, the combo box is populated with a query that is
based on a table in the CodeDB, if the user selects another option, the
combo box is populated with a query based on a table in the CurrentDB.
I do not know how to reference the CurrentDb from the CodeDB
I use a SQL string to set the row source of the combo box, something
like,
"Select * from Cities" if it is in the CodeDB and I would like it to do
something like
"Select * from States" from the Current DB, but I do not know how to
reference the currentDB in the SQL string? My only thought is to
manually create a string of the records and set it that way, because I
dont have a problem setting the recordset, I just dont know how to get
it to the combo box.
Any ideas?
Thanks