ScottyJones
New member
- Local time
- Today, 10:43
- Joined
- Aug 8, 2018
- Messages
- 7
Hi all,
I have a query based on a query based on a table.
The table has 2 fields of date/time... "PStart_Time" and a "PEnd_Time".
In the first query I am splitting the Start and End Times into 2 fields one being the same field as before (untouched) and the other like this:
StartDate: Format([PStart_Time], "Short Date")
EndDate: Format([PEnd_Time], "Short Date")
So far so good.
Either in this 'first query' or in the 'second one' I am adding a >[Date:] Criteria to the "StartDate" field. When I enter the Date I want it displays all dates in the table. It does not matter what date I give it, the result is the same, all dates in the table.
I have also tried Between [Date:] And [Date:] I get 0 results.
If I run >[Date:] in the Criteria field of the original PStart_Time field it works with no issues, but I want to have the user just enter 1 date and get the results they need.
I would think that since I am converting this data to "Short Date" format that I should be able to do =[Date] in either of these new fields and it should show me all records where Start Date = the date I put in the msgbox window, but it doesn't, I get 0 results. I do not understand the point of converting the field to "Short Date" format if I can't use said date to run a query against the data.
Could someone please explain 1) who can I get this to ask a user to enter 1 single date in history and only get results for that date? and 2) what the point of converting a 'general' or 'long' date to 'short' if I can't use it for anything.
Thanks you in advance!!
I have a query based on a query based on a table.
The table has 2 fields of date/time... "PStart_Time" and a "PEnd_Time".
In the first query I am splitting the Start and End Times into 2 fields one being the same field as before (untouched) and the other like this:
StartDate: Format([PStart_Time], "Short Date")
EndDate: Format([PEnd_Time], "Short Date")
So far so good.
Either in this 'first query' or in the 'second one' I am adding a >[Date:] Criteria to the "StartDate" field. When I enter the Date I want it displays all dates in the table. It does not matter what date I give it, the result is the same, all dates in the table.
I have also tried Between [Date:] And [Date:] I get 0 results.
If I run >[Date:] in the Criteria field of the original PStart_Time field it works with no issues, but I want to have the user just enter 1 date and get the results they need.
I would think that since I am converting this data to "Short Date" format that I should be able to do =[Date] in either of these new fields and it should show me all records where Start Date = the date I put in the msgbox window, but it doesn't, I get 0 results. I do not understand the point of converting the field to "Short Date" format if I can't use said date to run a query against the data.
Could someone please explain 1) who can I get this to ask a user to enter 1 single date in history and only get results for that date? and 2) what the point of converting a 'general' or 'long' date to 'short' if I can't use it for anything.
Thanks you in advance!!