Hi guys
I've got a form with a subform, which has 4 records below:
ID - sStatus - sAvailableStatus
1 - Holiday - Unavailable
2 - Unavailable - Unavailable
3 - Confirmed - Chargeable
4 - Provisional - Chargeable
Then in the main form there are two buttons
cmdExcludeProvisional runs a script which deletes the word "Chargeable" from the provisional field.
cmdIncludeProvisional adds the word "Chargeable" to the provisional field.
After this both commands then runs a lot of processing then refreshes the subform to show the change.
Ideally, I only want one of these buttons to be enabled at one particular point.
If the provisional field is blank i want cmdExcludeProvisional to be disabled and if provisional field has "Chargeable" then I want cmdIncludeProvisional to be disabled.
Any ideas on this guys?
I've got a form with a subform, which has 4 records below:
ID - sStatus - sAvailableStatus
1 - Holiday - Unavailable
2 - Unavailable - Unavailable
3 - Confirmed - Chargeable
4 - Provisional - Chargeable
Then in the main form there are two buttons
cmdExcludeProvisional runs a script which deletes the word "Chargeable" from the provisional field.
cmdIncludeProvisional adds the word "Chargeable" to the provisional field.
After this both commands then runs a lot of processing then refreshes the subform to show the change.
Ideally, I only want one of these buttons to be enabled at one particular point.
If the provisional field is blank i want cmdExcludeProvisional to be disabled and if provisional field has "Chargeable" then I want cmdIncludeProvisional to be disabled.
Any ideas on this guys?