J
Joe S.
Access 2007 database and using a form to filter records and import the
results into a report.
There are 4 list boxes:
lstpayment
lststore
lstkeyword
lstbuyer
I can get what I want to work one at a time i.e.
strFilter = "[store_name] = '" & Me!lststore & "'"
DoCmd.OpenReport "rptnopic", acViewPreview, , strFilter
Works fine for the storename filter. But if I try to use an AND statement I
get a type mismatch error
strFilter = "[store_name] = '" & Me!lststore & "'" And "[payment_type] = '"
& Me!lstpayment & "'"
DoCmd.OpenReport "rptnopic", acViewPreview, , strFilter
Anyone have any ideas?
results into a report.
There are 4 list boxes:
lstpayment
lststore
lstkeyword
lstbuyer
I can get what I want to work one at a time i.e.
strFilter = "[store_name] = '" & Me!lststore & "'"
DoCmd.OpenReport "rptnopic", acViewPreview, , strFilter
Works fine for the storename filter. But if I try to use an AND statement I
get a type mismatch error
strFilter = "[store_name] = '" & Me!lststore & "'" And "[payment_type] = '"
& Me!lstpayment & "'"
DoCmd.OpenReport "rptnopic", acViewPreview, , strFilter
Anyone have any ideas?