Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Time Bracket Code

Status
Not open for further replies.

Survane

MIS
Jul 3, 2002
74
US
Is this correct?

If Time > #1:00:00 PM# And Time >= #2:00:00 PM# Then
If CurrentUserInGroup("usrgrp1") = False Then
MsgBox "This is usrgrp2's time"
DoCmd.Quit
Exit Sub
End If
End If
 
Hi!

Do you want the first line to read:

If Time > #1:00:00 PM# And Time <= #2:00:00 PM# Then

instead of:

If Time > #1:00:00 PM# And Time >= #2:00:00 PM# Then?

Where is this code running?


Jeff Bridgham
bridgham@purdue.edu
 
This code is running behind my splash form. I want to see if the time is between 1 and 2 PM.

 
Hi!

Then definitely change the code as I have it in my previous post. Also, it looks like you would want to change the user group being passed to the module to usrgrp2.

hth


Jeff Bridgham
bridgham@purdue.edu
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top