i have a form with just three unbound controls. Two are numeric combo boxes. the first one is 'Patient Number' and the second one is 'Cycle'. the third one is the tickler.....it should get a 'Medication' from a table when 'Patient Number' and 'Cycle' numbers on the form that's being entered by the user correspond with the values on the 'Protocol Medication' table where 'Medication' lives.
I wrote a small SQL query to define the 'Row Source' of the 'Medication' combo box on the form with the three controls:
SELECT [Protocol Medications].[Medication] FROM [Protocol Medications] WHERE ((([Protocol Medications].[Patient Number])=Me.[Patient Number]) And (([Protocol Medications].[Cycle])=Me.Cycle));
when i fill in Patient Number and Cycle and enter the 'Medication' control, i am prompted for the values of "Me.Patient Number", and "Me.Cycle". shouldn't those values have been provided by the values entered in the combo boxes on the form?
I wrote a small SQL query to define the 'Row Source' of the 'Medication' combo box on the form with the three controls:
SELECT [Protocol Medications].[Medication] FROM [Protocol Medications] WHERE ((([Protocol Medications].[Patient Number])=Me.[Patient Number]) And (([Protocol Medications].[Cycle])=Me.Cycle));
when i fill in Patient Number and Cycle and enter the 'Medication' control, i am prompted for the values of "Me.Patient Number", and "Me.Cycle". shouldn't those values have been provided by the values entered in the combo boxes on the form?