jt643
Technical User
- Jun 17, 2003
- 144
I have a table with a field that is a checkbox control - 'Order'. When the user finishes their selections, the master selections table will be queried in VB to extract all records that have been checked to order and will compile them into a 'FinalSelections' table.
I can not get past the code I am trying to pull back the ordered selections with:
Set SelTotalTableDb = CurrentDb
Set SelTotalTableRst = SelTotalTableDb.OpenRecordset("select * from COSelTotalTable WHERE Subdivision = '" & TempRst!Subdivision & "' AND ORDER = TRUE")
The CAPITALIZED code is what is causing me headaches.
This is the error message I get:
Run-time error '3075':
Syntax error (missing operator) in query expression 'Subdivision = 'Test-71205' AND'.
Thanks so much for any help you can provide as this thing has got me stymied!
I can not get past the code I am trying to pull back the ordered selections with:
Set SelTotalTableDb = CurrentDb
Set SelTotalTableRst = SelTotalTableDb.OpenRecordset("select * from COSelTotalTable WHERE Subdivision = '" & TempRst!Subdivision & "' AND ORDER = TRUE")
The CAPITALIZED code is what is causing me headaches.
This is the error message I get:
Run-time error '3075':
Syntax error (missing operator) in query expression 'Subdivision = 'Test-71205' AND'.
Thanks so much for any help you can provide as this thing has got me stymied!