G
Guest
Hi all,
Sorry, this one seems like it should be easy, but I cannot figure it out...
I am wanting to capture an amount when a specific check box is selected -
similar to how if you are using a query and place the [] around some title in
the criteria section, that will be the header for collecting information for
a field. I would like to do this in VB and used the following:
If ShortPayment.Value = -1 Then
Dim PayAmount As String
PayAmount = [Amount Short?]
Special_Note.Value = "LETTER SENT - ORDER ON HOLD - waiting for payment
of " + PayAmount
ElseIf ShortPayment.Value = 0 Then
Special_Note.Value = "ORDER ON HOLD: In Return Drawer"
End If
I am getting a runtime error of 2465 that it cannot find the field. I would
like an entry box (similar to the one that happens with a query or a report)
pop up, allow the user to put in a value, hit ok, then fill in the amount
into the Special_Note value.
Any help is always appreciated! Thanks!
-gary
Sorry, this one seems like it should be easy, but I cannot figure it out...
I am wanting to capture an amount when a specific check box is selected -
similar to how if you are using a query and place the [] around some title in
the criteria section, that will be the header for collecting information for
a field. I would like to do this in VB and used the following:
If ShortPayment.Value = -1 Then
Dim PayAmount As String
PayAmount = [Amount Short?]
Special_Note.Value = "LETTER SENT - ORDER ON HOLD - waiting for payment
of " + PayAmount
ElseIf ShortPayment.Value = 0 Then
Special_Note.Value = "ORDER ON HOLD: In Return Drawer"
End If
I am getting a runtime error of 2465 that it cannot find the field. I would
like an entry box (similar to the one that happens with a query or a report)
pop up, allow the user to put in a value, hit ok, then fill in the amount
into the Special_Note value.
Any help is always appreciated! Thanks!
-gary