T
Tim Loeffelholz
I am writing a small application for a coffee shop that
wants to replace their Punch Cards with the application.
They want to run a report for any given day in the past
to find out a) How many punches they did b) Who came in
multiple times for coffee.
The problem is that I don't know how to write the code to
allow them to press a Command button, and enter a date to
find their info. They said they would even do something
like "-3 days from today". I've been able to write code
for one date:
"SELECT [Punch].[ID], [Punch].[Punch], [Punch].[PunchDate]
FROM Punch WHERE ((([Punch].[PunchDate])=#11/9/2003#))",
but can't find a way for them to be able to enter a
particular date. I've tried DoCMD.RunSQL,
DoCMD.OpenQuery..and I get the "A RunSQL action requires
an argument consisting of an SQL statement. I'm at my
wits end. Please help!!!!
wants to replace their Punch Cards with the application.
They want to run a report for any given day in the past
to find out a) How many punches they did b) Who came in
multiple times for coffee.
The problem is that I don't know how to write the code to
allow them to press a Command button, and enter a date to
find their info. They said they would even do something
like "-3 days from today". I've been able to write code
for one date:
"SELECT [Punch].[ID], [Punch].[Punch], [Punch].[PunchDate]
FROM Punch WHERE ((([Punch].[PunchDate])=#11/9/2003#))",
but can't find a way for them to be able to enter a
particular date. I've tried DoCMD.RunSQL,
DoCMD.OpenQuery..and I get the "A RunSQL action requires
an argument consisting of an SQL statement. I'm at my
wits end. Please help!!!!