I have two tables that share the the study protocol titles (string). In the one table "Study Events", I store reimbursement information related to each study protocol, but what concerns us are the two columns, "Protocol" and "EventDefinition". In this table, I may define multiple "events" for a single study protocol.
In the other table "Study Visits and Interactions", I have information related to when study events occur and have developed a form for end-users to enter that data. In that form, there is a combobox, "Study Protocol", that allows users to select from the unique list of protocols in the database. Then I have a second combobox that I would like to populate with the "EventDefinition" fields available for the selected protocol.
I am using the following query for my RowSource statement:
SELECT [Study Events].EventDefinition
FROM [Study Events]
WHERE Protocol= [Me].[Study Protocol];
When I define [Study Protocol] in the editor as one of the protocol names, the query returns the correct information. But when I try it in the actual form, there is nothing returned.
Have I used improper syntax for referencing the Combobox value if it's defined in the ControlSource table as a string?
[Me].
It only works in VBA and reference to the form should not be needed. – June7