doran_doran
Registered User.
- Local time
- Today, 13:15
- Joined
- Aug 15, 2002
- Messages
- 349
PW: CLng(DLookUp("[PlanWeight]","tblPlanMatrix","[Ga_Record_ID_2] = '" & [Ga_Record_ID_2] & "'"))
Ok, I am using above query with some other fields. I am trying to bring a numeric value. withouth cLng it's converting to text. Then I put CLng, but it's rounding up even after i change the format to 2 decimal after. Also, when I run sum, its giving me error, b/c some of the record gets error on the dlookup.
Here is what i am trying to do.
1. Convert it to (####.##) format. that way 2 digits after the decimal comes.
2. Then do a sum regardless of the error message. By the way, i am not runing a total query, I will be doing the sum on a report.
Prompt respond will be appreciated.
Regards
Dianna
Ok, I am using above query with some other fields. I am trying to bring a numeric value. withouth cLng it's converting to text. Then I put CLng, but it's rounding up even after i change the format to 2 decimal after. Also, when I run sum, its giving me error, b/c some of the record gets error on the dlookup.
Here is what i am trying to do.
1. Convert it to (####.##) format. that way 2 digits after the decimal comes.
2. Then do a sum regardless of the error message. By the way, i am not runing a total query, I will be doing the sum on a report.
Prompt respond will be appreciated.
Regards
Dianna