1
SELECT t1.[Ticket Number], t1.[Time Received], t1.[Time Read], t1.[Time Replied], t1.[Replied By], t1.[Called Customer?], t1.[Call Duration], t1.[Email Duration], t1.[General Issue]
FROM t1
WHERE [DDATE]=[GETDATE()];

Here DDATE is a field with dates that will be entered.

My query has to pull details for that day only, t1 is the table.

So how can i make this query to take todays date as parameter automatically?

I have made forms and tables and query in MS Access 2012?

4

1 に答える 1

1

DDate に時間要素がない限り、Date() を使用します。

SELECT t1.[Ticket Number], t1.[Time Received], 
   t1.[Time Read], t1.[Time Replied], 
   t1.[Replied By], t1.[Called Customer?], 
   t1.[Call Duration], t1.[Email Duration], t1.[General Issue] 
FROM t1 
WHERE [DDATE]=DATE()
于 2013-01-11T11:21:12.950 に答える