R
ryguy7272
This is a 2-part question
First, I have several TextBoxes on my Form. Of those, one is named
‘Quantity’ and one is named ‘Rate’. In my commission TextBox, I am using
this as my Control Source:
=IIF([QUANTITY]<>"",[QUANTITY]*[RATE],"")
That’s giving me an error. It was working before; not sure what changed.
Also, I am trying to pull a rate from a table using the Dlookup method, but
not having much success with this. Basically, when I enter data in a TextBox
named ‘Cust’ (for customer), I want to see the rate that a specific customer
pays. Here’s my code, which I found from an online video of how to do this.
Private Sub CUST_AfterUpdate(Cancel As Integer)
RATE = DLookup("Cust", "Customers", "Rate=" & RATE)
End Sub
‘Cust’ is the Field on my Form, Customers is the Table, and in theta Table I
have Customer and rate and a few other things.
The Error message is ‘The expression After Update you entered as the event
property setting produced the following error: Procedure declaration does not
match description of event or procedure having the same name.’
I must be missing something pretty simple. Can someone please tell me what
it is.
Thanks!
Ryan--
First, I have several TextBoxes on my Form. Of those, one is named
‘Quantity’ and one is named ‘Rate’. In my commission TextBox, I am using
this as my Control Source:
=IIF([QUANTITY]<>"",[QUANTITY]*[RATE],"")
That’s giving me an error. It was working before; not sure what changed.
Also, I am trying to pull a rate from a table using the Dlookup method, but
not having much success with this. Basically, when I enter data in a TextBox
named ‘Cust’ (for customer), I want to see the rate that a specific customer
pays. Here’s my code, which I found from an online video of how to do this.
Private Sub CUST_AfterUpdate(Cancel As Integer)
RATE = DLookup("Cust", "Customers", "Rate=" & RATE)
End Sub
‘Cust’ is the Field on my Form, Customers is the Table, and in theta Table I
have Customer and rate and a few other things.
The Error message is ‘The expression After Update you entered as the event
property setting produced the following error: Procedure declaration does not
match description of event or procedure having the same name.’
I must be missing something pretty simple. Can someone please tell me what
it is.
Thanks!
Ryan--