I have a form that creates two list boxes. The second list box contents are determined by what is selected in the first list box. This is working wonderfully. A valid entry in both list boxes can be a blank entry. When that gets passed as a parameter to my query it does not work correctly.
This scenario works correctly:
but when something like this is selected:
I get no results even though I know the data exists where the "Map Book" is equal to "3" and the "Map Page" is equal to blank or null.
Here is my SQL for my parameter query that is run when the "Run Query" button is pressed:
=====
SELECT tblSubTrans.SubDate, tblSubTrans.Instrument, tblSubTrans.InstrumentBook, tblSubTrans.InstrumentPage, tblSubTrans.SubCode, tblSubTrans.MapBook, tblSubTrans.MapPage, tblSubTrans.Addition, tblSubTrans.Block, tblSubTrans.LowLotNumber, tblSubTrans.HighLotNumber, tblSubTrans.Grantor, tblSubTrans.Grantee
FROM tblSubTrans
WHERE (((tblSubTrans.MapBook)=[Forms]![frmTestForm]![inp_mapbook]) AND ((tblSubTrans.MapPage)=[Forms]![frmTestForm]![inp_mappage]));
=====
I have a feeling that this has something to do with maybe the list box blank entry is null but the data in the table is not or vice-versa.
Any suggestions would be greatly appreciated!!!!
Thanks!