Compare Time feilds.

D

David Ehrenreich

Hello,

I have made a database for a testing center I work at.
We have students that login in to a form for their test's
and then a form for us to put in test details. I would
like to make a query that compares two times and displays
when one time is greater then the other.

I have two feilds that log the time. the first feild
TimeIn logs when a student has signed in. The second,
Allowed logs the time the student has to be finished. So
when Allowed is greater than Timein it would query those
results.

How do I do this?
Any help would be great.

David Ehrenreich
 
M

[MVP] S. Clark

David Ehrenreich said:
Hello,

I have made a database for a testing center I work at.
We have students that login in to a form for their test's
and then a form for us to put in test details. I would
like to make a query that compares two times and displays
when one time is greater then the other.

I have two feilds that log the time. the first feild
TimeIn logs when a student has signed in. The second,
Allowed logs the time the student has to be finished. So
when Allowed is greater than Timein it would query those
results.

How do I do this?
Any help would be great.

David Ehrenreich
 
M

[MVP] S. Clark

[Sorry for the first reply, which was empty]

I would think that you want to do in the code of the form, but since you
posted to the query section, I'll assume that you want to see SQL.

The following will take the start time and add 30 minutes.
Select [StartTime], [StartTime] + #00:30# as EndTime from table1


--
HTH,

Steve Clark, Access MVP
FMS, Inc.
Professional Solutions Group
http://www.FMSInc.com
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Is your Access database too slow?
Are you ready to upgrade to SQL Server?
Contact us for optimization and/or upsizing!
http://www.FMSInc.com/consulting
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top