scouser
Registered User.
- Local time
- Today, 06:33
- Joined
- Nov 25, 2003
- Messages
- 767
Hi Guys. I want to Display a command button on a form dependent on the value of another control.
I have a Main Form: frmSalesOrders and a Sub Form frmSalesOrderDetails
I have a command cmdSpecialInvoice on frmSalesOrders.
On Form Load I hide this.
However if the user selects a MakeID from frmSalesOrderDetails with an ID of 61 I want the button to be visible.
I attempted to put this on the After Update Event of control 'MakeID'
I got an error stating could not find frmSalesOrderDetails?
That aside is it possible to do what I want?
Note:
MakeId is a combo. Takes its value from qryMakes if tht makes a difference.
Any ideas?
Cheers,
Phil.
I have a Main Form: frmSalesOrders and a Sub Form frmSalesOrderDetails
I have a command cmdSpecialInvoice on frmSalesOrders.
On Form Load I hide this.
However if the user selects a MakeID from frmSalesOrderDetails with an ID of 61 I want the button to be visible.
I attempted to put this on the After Update Event of control 'MakeID'
Code:
If Forms!frmSalesOrderDetails!MakeID = 61 Then
Forms!frmSalesOrders!cmdSpecialInvoice.Visible = True
End If
I got an error stating could not find frmSalesOrderDetails?
That aside is it possible to do what I want?
Note:
MakeId is a combo. Takes its value from qryMakes if tht makes a difference.
Any ideas?
Cheers,
Phil.