If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Inhibit edit of one text box based on the contents of another
The two text boxes are on the same form (subform3).
I want to inhibit the Quantity filed from being edited if the Status field contains "Ship Requested". The following code gives me an error 'Expected: list separator or )' Private Sub Quantity_BeforeUpdate(Cancel As Integer) ' Inhibit txtbox if the Status field is "Ship Requested" IIf(me.Status = "Ship Requested"; me.AllowEdits = True, _ me.AllowEdits = False) End Sub |
Thread Tools | |
Display Modes | |
|
|