Okay, now I am lost.
The following code works great for opening the report but if I use the SQL or even the query where would the "Buildwhere (me," Or ")" go?
The below opens the report with the correct dates.
DoCmd.OpenReport "Summary Time and Attendance Register", acViewPreview, , BuildWhere(Me, "OR")
The problem is that on a rather regular basis, I need to delete a day for some reason or another, therefore I was hopeing to use a delete query with the Buildwhere(me,"Or")
The form is set up to allow me to enter upto 4 different date ranges and/or 3 different individual days. (That comes in handy around Holiday season).
Any idea of how to formulate the SQL or Delete Query? Currently there is the "Code" from the query...
DELETE DISTINCTROW [TEST D].[EFF-DTE], [TEST D].[CO-NBR], [TEST D].[CC-NBR], [TEST D].ROLL, [TEST D].[LOA-HRS], [TEST D].[VAC-HRS], [TEST D].[NCDE-HRS], [TEST D].[OTHR-HRS], [TEST D].[SCH-RG], [TEST D].[SCH-OT], [TEST D].[SCH-DT], [TEST D].[BOR-RG], [TEST D].[BOR-OT], [TEST D].[BOR-DT], [TEST D].[LOAN-RG], [TEST D].[LOAN-OT], [TEST D].[LOAN-DT], [TEST D].[WKO-RG], [TEST D].[WKO-OT], [TEST D].[WKO-DT], [TEST D].[CC-DSC]
FROM [TEST D]
WHERE ((([TEST D].[CC-NBR])<>9999));
As you can see I am using a "Test" table, however the field names are correct, as well as not deleting "9999".
Thank you for any and all help!