G
Guest
I have a form called fClientFile. It contains a subform called
fBenefitDesignSelect. That subform contains a subform called
fBenefitDesignView. A series of tabbed forms reside on this latter form. An
example would be fDeductibleView using the control DeductibleDetailsID.
fDeductibleView is based on a query.
I have placed a command button (AddNewDed) on the tab page itself (not
within fDeductibleView) to open another form. However, I only want the
command button to be visible if there are no records to display in
fDeductibleView.
On form load of fBenefitDesignView, I have the following code:
Me.AddNewDed.Visible = False
because most of the time I don't need to see the command button.
However, when there are no records to display in fDeductible View, I want to
see the command button. I've tried every combination I can think of, but I
keep getting a syntax error. Can someone suggest the code to make this
command button visible under the right condition? Thanks.
fBenefitDesignSelect. That subform contains a subform called
fBenefitDesignView. A series of tabbed forms reside on this latter form. An
example would be fDeductibleView using the control DeductibleDetailsID.
fDeductibleView is based on a query.
I have placed a command button (AddNewDed) on the tab page itself (not
within fDeductibleView) to open another form. However, I only want the
command button to be visible if there are no records to display in
fDeductibleView.
On form load of fBenefitDesignView, I have the following code:
Me.AddNewDed.Visible = False
because most of the time I don't need to see the command button.
However, when there are no records to display in fDeductible View, I want to
see the command button. I've tried every combination I can think of, but I
keep getting a syntax error. Can someone suggest the code to make this
command button visible under the right condition? Thanks.