V
Vernon
Good afternoon,
I am attempting to make my "Obl Fees" be a calculated
value received by multiplying the "Units" and "LU_Type"
fields. The values in the "LU_Type" fields are from a
pull down menu (linked table) and I am referencing a
different column within the table. I recieved help on
this earlier, but my code is still popping up
an "expected: end" error and when I try to enter data into
the form, it pops up a syntax error when I get to
the "LU_Type" field, the first of the modified fields.
I checked that I spelt all of the fields correctly. Could
someone who knows VB well please read this and tell me
what I've done wrong (I am hoping that I've just made a
typo and have too little VB experience to see it).
Here is the string of code:
Private Sub LU_Type_BeforeUpdate(Cancel As Integer)
If Not IsNull(Me.[LU_Type]) And Not IsNull(Me.[Units]) Then
Me.[Obl Fees] = DFirst("Fee Per
Unit", "tbl_LU_Type","LU_Type=" & Me.[LU_Type]&"") * Me
[Units]
End If
End Sub
Thanks,
Kendra
I am attempting to make my "Obl Fees" be a calculated
value received by multiplying the "Units" and "LU_Type"
fields. The values in the "LU_Type" fields are from a
pull down menu (linked table) and I am referencing a
different column within the table. I recieved help on
this earlier, but my code is still popping up
an "expected: end" error and when I try to enter data into
the form, it pops up a syntax error when I get to
the "LU_Type" field, the first of the modified fields.
I checked that I spelt all of the fields correctly. Could
someone who knows VB well please read this and tell me
what I've done wrong (I am hoping that I've just made a
typo and have too little VB experience to see it).
Here is the string of code:
Private Sub LU_Type_BeforeUpdate(Cancel As Integer)
If Not IsNull(Me.[LU_Type]) And Not IsNull(Me.[Units]) Then
Me.[Obl Fees] = DFirst("Fee Per
Unit", "tbl_LU_Type","LU_Type=" & Me.[LU_Type]&"") * Me
[Units]
End If
End Sub
Thanks,
Kendra