Tobasco1136
IS-IT--Management
In MS Access 2003, I have 4 test records in tblRecordsCheckedOut. I built a query prompting a user to enter the name of the person checking out a file. When I enter the name, I get a blank record back. If I hit enter (which retrieves all records) I get all 4 records the way it is supposed to work.
Can anyone tell me why my query by a specific person isn't working? I have included the SQL query that Access Built.
SELECT tblRecordsCheckedOut.DateFileCheckedOut, tblRecordsCheckedOut.ProviderFullName, DateDiff("y",[DateFileDue],Now())+30 AS DaysOverdue, tblRecordsCheckedOut.FileCheckedOutTo, tblRecordsCheckedOut.DepartmentAccessingRecord, tblRecordsCheckedOut.DateFileDue
FROM tblRecordsCheckedOut
WHERE (((DateDiff("y",[DateFileDue],Now())+30)>30) AND ((tblRecordsCheckedOut.FileCheckedOutTo) Like "*" & [Enter Name or Hit Enter to Retrieve All Records] & "*"));
Can anyone tell me why my query by a specific person isn't working? I have included the SQL query that Access Built.
SELECT tblRecordsCheckedOut.DateFileCheckedOut, tblRecordsCheckedOut.ProviderFullName, DateDiff("y",[DateFileDue],Now())+30 AS DaysOverdue, tblRecordsCheckedOut.FileCheckedOutTo, tblRecordsCheckedOut.DepartmentAccessingRecord, tblRecordsCheckedOut.DateFileDue
FROM tblRecordsCheckedOut
WHERE (((DateDiff("y",[DateFileDue],Now())+30)>30) AND ((tblRecordsCheckedOut.FileCheckedOutTo) Like "*" & [Enter Name or Hit Enter to Retrieve All Records] & "*"));