Tblqryfrmrpt
New member
- Local time
- Today, 08:30
- Joined
- May 10, 2011
- Messages
- 6
Sorry for the odd title, but my problem is a little tricky.
I have a query that is a union query that captures all incoming and outgoing changes to a field in a record based on today's date. These records need to be emailed to an outside source. The idea is that an admin user can click the button when the report needs to be sent, write an Excel file and then send an Outlook email. This part works fine.
My problem is that this report is typically run at around 2 pm. For records changed after 2 pm, if someone goes to pull the report tomorrow, the changes will not show up because the query is based on today's date. Even if it was based on today and yesterday's date, it will also return the records that were changed before 2pm the day prior. Since I don't currently track the time, just the date, this leads me to a big problem.
My thought is that instead of a query, I will have to create a new table with a date AND time stamp and then the button will pull everything after x time and y date. However, this is much more complicated than the simple query I have now. Does anyone have any another ideas how to work around this issue?
Thanks!
I have a query that is a union query that captures all incoming and outgoing changes to a field in a record based on today's date. These records need to be emailed to an outside source. The idea is that an admin user can click the button when the report needs to be sent, write an Excel file and then send an Outlook email. This part works fine.
My problem is that this report is typically run at around 2 pm. For records changed after 2 pm, if someone goes to pull the report tomorrow, the changes will not show up because the query is based on today's date. Even if it was based on today and yesterday's date, it will also return the records that were changed before 2pm the day prior. Since I don't currently track the time, just the date, this leads me to a big problem.
My thought is that instead of a query, I will have to create a new table with a date AND time stamp and then the button will pull everything after x time and y date. However, this is much more complicated than the simple query I have now. Does anyone have any another ideas how to work around this issue?
Thanks!