Searched through for help but to no avail.
I'm usnig 2 combo box the with the following code in the after update event of the first/master combo box:
Combo34.RowSource = "Select tblMasterDB.Instrument " & _
"FROM tblMasterDB " & _
"WHERE tblMasterDB.Hospital Name = '" & Combo32.Value & "' " & _
"ORDER BY tblMasterDB.Instrument;"
So the frist combo box selects the site address. THe second then selects the
modules on that site. All info is contained withing the table MasterDB.
When I run the form and select the site then go to select a module from the second combo box I am presented with this error message:
Syntax error (missing operator) in query expression tblMasterDB.Site Name = 'The site name'
Any ideas?
Many thanks.
I'm usnig 2 combo box the with the following code in the after update event of the first/master combo box:
Combo34.RowSource = "Select tblMasterDB.Instrument " & _
"FROM tblMasterDB " & _
"WHERE tblMasterDB.Hospital Name = '" & Combo32.Value & "' " & _
"ORDER BY tblMasterDB.Instrument;"
So the frist combo box selects the site address. THe second then selects the
modules on that site. All info is contained withing the table MasterDB.
When I run the form and select the site then go to select a module from the second combo box I am presented with this error message:
Syntax error (missing operator) in query expression tblMasterDB.Site Name = 'The site name'
Any ideas?
Many thanks.