I am new at QueryDefs!
How do I include a where statement in a QueryDef? If I run the code below:
I get a Run time error 3262 - Item not found in this collection
If I run the code:
It runs fine, but without filtered data
Thanks in advance
How do I include a where statement in a QueryDef? If I run the code below:
Code:
Set qdf = CurrentDb.QueryDefs("qrySupplierOrderExcelCodeQuantity where SupplierPurchaseOrderResaleId = " & intSupplierOrderId)
If I run the code:
Code:
Set qdf = CurrentDb.QueryDefs("qrySupplierOrderExcelCodeQuantity")
Thanks in advance