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!

Switchboard that change with time of the day

Status
Not open for further replies.

yoshi88

Technical User
Mar 18, 2001
48
CA
I want a switchboard that will change a 6:00 PM. I already have an hidden form (switchboard2), I want it to open at 6:00 PM and at the same time close the first switchboard. I am not really good with VB code, can someone help me.

If there is a better way than using 2 forms, let me know
 
you can do this in the timer event of the first form using this code:

if hour(time())=18 then
docmd.close acform, me.name
docmd.openform "switchboard2"
endif

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top