Date in continuous form

pwalt08

New Member
Joined
Sep 5, 2011
Messages
12
Hello,

I have a table, and form that are going to be used as a call log. The form will be continuous for a month and then we will run a query to delete old calls.

The table has a hidden field for date. I would like this field auto populated which I am able to do. The problem I am running into is 3rd shift 11p -7a. I would the like the field to auto populate with the previous date until 7am then start to use the new date.

This is my first database and I am learning as I go. Any help is greatly appreciated!!
 
In design view, sort both your "todays date" column and "timerequested" column. Because you want to take into account the overnight shift, make sure the "todays date" column is to the left of the "timerequested" column (Access sorts from left to right in design view).
 
Upvote 0

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
If the date field asks [what date?] and the user puts in 2/4/12. How do I get the query to display records from 7am on 2/4/12 to 6:59am on 2/5/12
 
Upvote 0
Thanks for all your help!

This is what I did.

First line of criteria is [What Date?] AND Between #7:00:00 AM# and #11:59:59 PM#

Second Line of criteria is [What Date?]+1 AND Between #12:00:00 AM# and #6:59:59 AM#
 
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,917
Members
452,366
Latest member
TePunaBloke

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top