I have a mainform and subform.
The mainform has command buttons that will filter the data to the subform.
One filter has the Continuous subform with two types of data.
One has textbox control "LID" with 0 (zero) and the other has numbers above zero. LID is on the continuous subform. Only filter buttons on the main form.
A Command Button on each record I would like to be either visible or not or enabled or not.
Visible if LID >0 - or enabled.
This is all from the main form filter button.
This line on the filter button works to set the subform button to visible for all records in this data set - filtered view.
The mainform has command buttons that will filter the data to the subform.
One filter has the Continuous subform with two types of data.
One has textbox control "LID" with 0 (zero) and the other has numbers above zero. LID is on the continuous subform. Only filter buttons on the main form.
A Command Button on each record I would like to be either visible or not or enabled or not.
Visible if LID >0 - or enabled.
This is all from the main form filter button.
This line on the filter button works to set the subform button to visible for all records in this data set - filtered view.
PHP:
[Me.FrmLoanApplicationsSubForm.Form.CmdLoanMoved.Visible = True/PHP]
How can I add an If then to make it either be visible or not depending on LID ??
I can get it to either be visible or not for all records but not just for some.
I also tried to set the enabled in the subform but so far no luck.
If I persued this, which event would you use?
On Enter ? I want it to not work for the onclick event if LID is zero.
I assume it is possible to have a continuous form with buttons showing / enabled on some records only?:confused: