Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Type Mismatch Error

Status
Not open for further replies.

cblakley4

Technical User
Jun 15, 2012
5
US
I'm getting a type mismatch error on the following line:
Code:
enginePrice = Csng(RFP) - Csng(SRP) - Csng(manualadj) - Csng(Penalty)

RFP, SRP, manualadj, and penalty are all globally declared in a seperate header file as strings
and enginPrice is globally declared as a single.

I can't figure out why I'm getting the error. any help would be very much appreciated.

Thanks,
C
 
hi,
Code:
enginePrice = Csng(RFP) - Csng(SRP) - Csng(manualadj) - Csng(Penalty)
How is enginePrice declared?
How is RFP declared?
How is SRP declared?
How is manualadj declare?
How is Penalty declared?

At the point of error...
what is the VALUE in RFP?
what is the VALUE in SRP?
what is the VALUE in manualadj?
what is the VALUE in Penalty?



Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
Thanks Skip, I've feel stupid because its working now, and I think the issue was needing to compile the .ebh. Still not quite sure what happened, but I changed no code and it is now working.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top