TheSearcher
Registered User.
- Local time
- Today, 16:25
- Joined
- Jul 21, 2011
- Messages
- 366
‘If I run this query it returns what I expect.
SELECT tbl_Note_COG_BasicInfo.Client_Id, tbl_Note_COG_BasicInfo.DateOfService, tbl_Note_COG_BasicInfo.Time_In
FROM tbl_Note_COG_BasicInfo
WHERE (((tbl_Note_COG_BasicInfo.Client_Id)="600045") AND ((tbl_Note_COG_BasicInfo.DateOfService)=#8/29/2024#));
However, after adding the Time_In criteria in the Query Designer the VBA SQL looks like below. Notice the Time_In criteria.
This query doesn’t return anything.
‘The VBA SQL looks like this. Notice the Time_In criteria.
SELECT tbl_Note_COG_BasicInfo.Client_Id, tbl_Note_COG_BasicInfo.DateOfService, tbl_Note_COG_BasicInfo.Time_In
FROM tbl_Note_COG_BasicInfo
WHERE (((tbl_Note_COG_BasicInfo.Client_Id)="600045") AND ((tbl_Note_COG_BasicInfo.DateOfService)=#8/29/2024#) AND ((tbl_Note_COG_BasicInfo.Time_In)=#12/30/1899 8:0:0#));
Tbl_Note_COG_BasicInfo is a Datetime field in a SQl Server database table. The table is linked to my Access interface.
What would I need to do to use Time_In criteria and have it return a record?
Thanks in advance,
TS
SELECT tbl_Note_COG_BasicInfo.Client_Id, tbl_Note_COG_BasicInfo.DateOfService, tbl_Note_COG_BasicInfo.Time_In
FROM tbl_Note_COG_BasicInfo
WHERE (((tbl_Note_COG_BasicInfo.Client_Id)="600045") AND ((tbl_Note_COG_BasicInfo.DateOfService)=#8/29/2024#));
However, after adding the Time_In criteria in the Query Designer the VBA SQL looks like below. Notice the Time_In criteria.
This query doesn’t return anything.
‘The VBA SQL looks like this. Notice the Time_In criteria.
SELECT tbl_Note_COG_BasicInfo.Client_Id, tbl_Note_COG_BasicInfo.DateOfService, tbl_Note_COG_BasicInfo.Time_In
FROM tbl_Note_COG_BasicInfo
WHERE (((tbl_Note_COG_BasicInfo.Client_Id)="600045") AND ((tbl_Note_COG_BasicInfo.DateOfService)=#8/29/2024#) AND ((tbl_Note_COG_BasicInfo.Time_In)=#12/30/1899 8:0:0#));
Tbl_Note_COG_BasicInfo is a Datetime field in a SQl Server database table. The table is linked to my Access interface.
What would I need to do to use Time_In criteria and have it return a record?
Thanks in advance,
TS