G
Guest
Access 2003 on an XP SP2 machine, Access 2000 or 2003 format database.
Trying to establish period queries, but using the =Date()-1 (or any other
combo of Date()+ or-) as criteria returns an empty recordset. Only one table
involved.
Sample:
SELECT tblData.Received AS [Time In], tblData!GuestFirstName & " " &
tblData!GuestLastName AS Patron, tblData!GuestStreet1 & " " &
tblData!GuestHomeCity & ", " & tblData!GuestHomeState & " " &
tblData!GuestZip AS Address, tblData!GuestPhone AS Phone, tblData.GuestEmail
AS EMail, "Visited the " & tblData!Restaurant & " store and had a " &
tblData!Category & " about " & tblData!Subcategory & "." AS Verbiage,
tblData.Comments
FROM tblData
WHERE (((tblData.Received)=Date()-1))
ORDER BY tblData.Received;
Shaved my head, so when I start pulling hair it will be eyebrows.
Trying to establish period queries, but using the =Date()-1 (or any other
combo of Date()+ or-) as criteria returns an empty recordset. Only one table
involved.
Sample:
SELECT tblData.Received AS [Time In], tblData!GuestFirstName & " " &
tblData!GuestLastName AS Patron, tblData!GuestStreet1 & " " &
tblData!GuestHomeCity & ", " & tblData!GuestHomeState & " " &
tblData!GuestZip AS Address, tblData!GuestPhone AS Phone, tblData.GuestEmail
AS EMail, "Visited the " & tblData!Restaurant & " store and had a " &
tblData!Category & " about " & tblData!Subcategory & "." AS Verbiage,
tblData.Comments
FROM tblData
WHERE (((tblData.Received)=Date()-1))
ORDER BY tblData.Received;
Shaved my head, so when I start pulling hair it will be eyebrows.