mjcaestecker
Registered User.
- Local time
- Today, 00:56
- Joined
- Aug 17, 2012
- Messages
- 25
Greetings all
I have a bit of code that is returning a 2427 runtime error and Nz() will not fix it. Was wondering if anyone could shed some light...
Here's the setup:
I have a subform that displays query results. At the bottom of the subform (in the footer) is a text box with control source =Sum([Amount]) to sum up all the Amount values displayed. I tried to store that value as a variable and thats where I got the error. Here's the code:
The error occurs on the line with the Amount variable (starred). The error message says "Run-time error 2427: You entered an expression that has no value"
Any thoughts?
Thanks,
-Martin
I have a bit of code that is returning a 2427 runtime error and Nz() will not fix it. Was wondering if anyone could shed some light...
Here's the setup:
I have a subform that displays query results. At the bottom of the subform (in the footer) is a text box with control source =Sum([Amount]) to sum up all the Amount values displayed. I tried to store that value as a variable and thats where I got the error. Here's the code:
Code:
Private Sub TabSetBooks_Change()
Dim Amount As Currency
Dim CCfeePct As Double
CCfeePct = DLookup("Number", "BooksSettings", "Item = 'CreditCardFeePct'")
*** Amount = Me!BooksFullSubCC.Form!CCchargesTotal.Value ***
Forms!BooksFull!CCFees = Amount * CCfeePct
End Sub
The error occurs on the line with the Amount variable (starred). The error message says "Run-time error 2427: You entered an expression that has no value"
Any thoughts?
Thanks,
-Martin