jamie_pattison
Well-known member
- Joined
- Sep 9, 2008
- Messages
- 116
- Programming Experience
- Beginner
I'm trying to use a splash screen to check the logged on users rights and if all meets criteria it loads the default form.
Currently in my load event of the spash form i had some code along the lines
If CriteriaMet Then
OpenForm
Else
msgbox("You do not have access to this app")
End If
However the main form still loads even if the user isnt meeting the criteria. I looked at View Application Events to see if i could tie in this piece of code but i dont seem to be able to control it.
Could anyone provide some advice on what approaches i could take here?
Thanks
Currently in my load event of the spash form i had some code along the lines
If CriteriaMet Then
OpenForm
Else
msgbox("You do not have access to this app")
End If
However the main form still loads even if the user isnt meeting the criteria. I looked at View Application Events to see if i could tie in this piece of code but i dont seem to be able to control it.
Could anyone provide some advice on what approaches i could take here?
Thanks