gnarpeggio
Registered User.
- Local time
- Today, 04:11
- Joined
- Jun 22, 2010
- Messages
- 74
How to Disable a Command Button for a Group of Existing Records
Hello,
I'm trying to develop a code for a command button that will disable it as it will have no purpose on previous records.
My command button is set up with an Application.FollowHyperlink function that will match the record's ID number with the stored file name and open it when clicked. Since this process is going to coincide with newer records only (this procedure hasn't been implemented yet), I need my DB to ignore the set of existing records entered and only enable the button beginning on the record ID I choose.
In a nutshell, I'd like to have a validation code that states:
If [ID] is between 1 - 999, Then
[CmdButton] = No
Is there a way to do this? Any help is appreciated!
Thanks!
Hello,
I'm trying to develop a code for a command button that will disable it as it will have no purpose on previous records.
My command button is set up with an Application.FollowHyperlink function that will match the record's ID number with the stored file name and open it when clicked. Since this process is going to coincide with newer records only (this procedure hasn't been implemented yet), I need my DB to ignore the set of existing records entered and only enable the button beginning on the record ID I choose.
In a nutshell, I'd like to have a validation code that states:
If [ID] is between 1 - 999, Then
[CmdButton] = No
Is there a way to do this? Any help is appreciated!
Thanks!
Last edited: