I am developing an Access 2003 MDB type application with SQL Server as the Back end database.
My application uses 5 tabs as follows:
I have the user log onto my system and assign the user access rights.
The access rights are stored in a field name strUSERRIGHTS.
In the form load, I use the following logic:
If strUSERRIGHTS = "V" Then
Misc.Visible = False
UDL_Remediate.Visible = False <----- Compile error Run time error '2165'
UDL_1099.Visible = False
Page856.Visible = False
When the compiler reaches the line UDL_Remediate.Visible = False,
the system displays the following:
Run-time error '2165':
You can't hide a control that has the focus
Do you know how I can resolve this error?