I am trying to create a form (Start/End_date_form) with several unbound list boxes, from which I want to base a parameter query.
This is what the SQL looks like for the query:
SELECT Batch_Info_Table.BA, DOC_List.MD_Name, Batch_Info_Table.[#OFTKTS_IN_BATCH]
FROM Batch_Info_Table LEFT JOIN DOC_List ON (Batch_Info_Table.BA = DOC_List.BA_Mnemonic) AND (Batch_Info_Table.DOC = DOC_List.MD_Mnemonic)
WHERE (((Batch_Info_Table.BA)=[Forms]![Start/End_date_Form]![lbo53]) AND ((Batch_Info_Table.DATERECD) Between [Forms]![Start/End_date_Form]![cbodate1] And [Forms]![Start/End_date_Form]![cbodate2]));
In the "Where" section, the cbodate1 and cbodate2 controls work fine, but for the lbo53 control, I am trying to list values with these properties: Row Source - Value List, Row Source Type - cim;col or gmt;brm or ghn or gtl;pla
The query runs when I choose a value with just one choice (i.e. - cim), but when I want it to run for the choices with multiple values (i.e. - "col" or "gmt"), the query fails.
I hope this makes sense. I'd appreciate any help anyone can provide.
This is what the SQL looks like for the query:
SELECT Batch_Info_Table.BA, DOC_List.MD_Name, Batch_Info_Table.[#OFTKTS_IN_BATCH]
FROM Batch_Info_Table LEFT JOIN DOC_List ON (Batch_Info_Table.BA = DOC_List.BA_Mnemonic) AND (Batch_Info_Table.DOC = DOC_List.MD_Mnemonic)
WHERE (((Batch_Info_Table.BA)=[Forms]![Start/End_date_Form]![lbo53]) AND ((Batch_Info_Table.DATERECD) Between [Forms]![Start/End_date_Form]![cbodate1] And [Forms]![Start/End_date_Form]![cbodate2]));
In the "Where" section, the cbodate1 and cbodate2 controls work fine, but for the lbo53 control, I am trying to list values with these properties: Row Source - Value List, Row Source Type - cim;col or gmt;brm or ghn or gtl;pla
The query runs when I choose a value with just one choice (i.e. - cim), but when I want it to run for the choices with multiple values (i.e. - "col" or "gmt"), the query fails.
I hope this makes sense. I'd appreciate any help anyone can provide.