L
LM19
I have set up a switchboard in Access 2003 that enables others using the
database to easily access the forms that they need without having to search
through all the other information that is on the database and have set up a
'Back' command button so that navigation between the other switchboards that
are linked to the main default one is easy. I would like the 'Back' button
only enabled on pages other then the main default page as you can't go 'Back'
any further then that page. Can anyone help me with the code that I would
need to use to do this? I have attempted using the following code but it
allows me to press the 'Back' button once and then disables it entirely, no
matter what page you are on. Here is the code:
If Me![Argument] = "Default" Then
' We're on the Default Page
' Disable the back button
Me.Back.Enabled = False
Else
' Enable the back button
Me.Back.Enabled = True
End If
Thanks,
LM
database to easily access the forms that they need without having to search
through all the other information that is on the database and have set up a
'Back' command button so that navigation between the other switchboards that
are linked to the main default one is easy. I would like the 'Back' button
only enabled on pages other then the main default page as you can't go 'Back'
any further then that page. Can anyone help me with the code that I would
need to use to do this? I have attempted using the following code but it
allows me to press the 'Back' button once and then disables it entirely, no
matter what page you are on. Here is the code:
If Me![Argument] = "Default" Then
' We're on the Default Page
' Disable the back button
Me.Back.Enabled = False
Else
' Enable the back button
Me.Back.Enabled = True
End If
Thanks,
LM