G
Guest
I need to build a trap into a form, whereby if Field1 = "Keyword" and Field2
is null then a message box pops up saying that Field2 needs to be filled in.
A potential problem is that the person who made this database designed a
printable form (not report) with unbound text boxes, and code in a command
button's Click event along the lines of:
Set rst = New ADODB.Recordset
rst.Open "maintable", cnn, adLockOptimistic, adOpenDynamic
rst.AddNew
rst![Field1] = Me.txtField1
etc. (txtField1 is a text box with Field1 as its control source). Field1
has no value until after the referenced code has run, so adding a trap before
then would have to reference the text box, I suppose.
I would not have taken this course with the database, but I do not have time
to do more than patch it for now. That being said, any suggestions?
is null then a message box pops up saying that Field2 needs to be filled in.
A potential problem is that the person who made this database designed a
printable form (not report) with unbound text boxes, and code in a command
button's Click event along the lines of:
Set rst = New ADODB.Recordset
rst.Open "maintable", cnn, adLockOptimistic, adOpenDynamic
rst.AddNew
rst![Field1] = Me.txtField1
etc. (txtField1 is a text box with Field1 as its control source). Field1
has no value until after the referenced code has run, so adding a trap before
then would have to reference the text box, I suppose.
I would not have taken this course with the database, but I do not have time
to do more than patch it for now. That being said, any suggestions?