CharlesWhiteman
Registered User.
- Local time
- Today, 22:39
- Joined
- Feb 26, 2007
- Messages
- 421
I've created a custom Home ribbon in my A2207Db and some of the ribbon commands are to allow users to open certain forms. Some of my forms reply on values in a splashscreen and that only opens after a user has logged in via a password form.
I need Access to check if a form is open and if its not then to exit the command and close. I've tried the bit of code below but when I test it I sill see a parateter value prompt referring to my splashscreen and then my form still opens although blank. Any ideas?
I need Access to check if a form is open and if its not then to exit the command and close. I've tried the bit of code below but when I test it I sill see a parateter value prompt referring to my splashscreen and then my form still opens although blank. Any ideas?
Code:
DoCmd.SetWarnings False
If CurrentProject.AllForms("FrmSplashScreen").IsLoaded = False Then
MsgBox "Login Required"
Exit Sub
Else
End If
DoCmd.SetWarnings True
End Sub