As user is filling out form, if they “check” the checkbox field1, they are to enter the cost in field2. Sometimes they leave field2 blank. How can I default to a value of 55.00 if field2 is null?
Thanks from me again.
Thanks from me again.
As user is filling out form, if they “check” the checkbox field1, they are to enter the cost in field2. Sometimes they leave field2 blank. How can I default to a value of 55.00 if field2 is null?
Thanks from me again.
FYI: Use the forms Before Update event to validate the current record before allowing the record to be saved.
Private Sub [B]KingSizeInd_After[/B]Update(Cancel As Integer)
If Not IsNull([B]Me.[/B]KingSizeInd) And IsNull([B]Me.[/B]King[B][COLOR=red]_[/COLOR][/B]CHARGE) Then
[B]Me.[/B]King[B][COLOR=red]_[/COLOR][/B]CHARGE = 55
End If
End Sub
Copied your supplied code and put "After Update" on "KingSizeInd". Saved and opened form and entered data, but same thing. "KingCHARGE" was & is still bank ... NO DEFAULT VALUE.
If you still can't get it, then uploading a copy here would probably solve the problem in about 10 seconds.
It might take me 30-60 seconds becasue I am not sure that this old computer could download a database that fast.