I'm doing a Pass Through Query using Microsoft Access, the SQL statement below works fast and fine. Is there a way to request the date parameters from the user in the WHERE statement each time the query is run instead of the parameters being hard coded? I created the SQL statement using Crystal Reports and copied it to Access SELECT "AR_InvoiceHistoryHeader"."InvoiceNo", "AR_InvoiceHistoryHeader"."HeaderSeqNo", "AR_InvoiceHistoryHeader"."InvoiceType", "AR_InvoiceHistoryHeader"."InvoiceDate", "AR_InvoiceHistoryHeader"."BillToName" FROM "AR_InvoiceHistoryHeader" "AR_InvoiceHistoryHeader" WHERE ("AR_InvoiceHistoryHeader"."InvoiceDate">={d '2015-07-19'} AND "AR_InvoiceHistoryHeader"."InvoiceDate"<={d '2015-07-25'})
↧