Data type mismatch in criteria expression Access error
In Access, I have several different expressions going (since the code is too long to put into one expression field). Here is an example of the expression: ConsultativeSellingScore: (IIf(Eval([CallControl] In (10,5,0)),10,0)+IIf(Eval([QualifiedCallerEligibility] In (10,5,0)),10,0)+IIf(Eval([NextSteps] In (8,4,0)),8,0)+IIf(Eval([NeedsAssessment] In (14,7,0)),14,0)+IIf(Eval([PlanRecommendation] In (14,7,0)),14,0)+IIf(Eval([AskedForSale] In (18,9,0)),18,0)+IIf(Eval([OvercameObjections] In (10,5,0)),10,0)) I have tried reading the articles in regards to the data type mismatch error for Access, but unable to figure out what I'm doing wrong. In the table the field is Number and I have the field criteria for the expression as general number. As you can see in the code, I have also stripped out the quotations from around the numbers, so it shouldn't be viewing the expression as text. If anyone has any idea what the issue is, I'd greatly appreciate the help. IIf(IsNull([UtilizedScript]),0,6)+IIf(IsNull([GatheredInfo]),0,14)+IIf(IsNull([Hold]),0,6)+IIf(IsNull([CallDisposition]),0,10)+IIf(IsNull([BuiltRapport]),0,10)+IIf(IsNull([EffectiveCommunication]),0,6)+IIf(IsNull([PhoneEtiquette]),0,10)+IIf(IsNull([Ownership]),0,8)+IIf(IsNull([UsedResources]),0,8)+IIf(IsNull([ProfessionalConduct]),0,20)+IIf(IsNull([AccurateInformation]),0,18)+IIf(IsNull([CallControl]),0,10)+IIf(IsNull([QualifiedCallerEligibility]),0,10)+IIf(IsNull([NextSteps]),0,8)+IIf(IsNull([NeedsAssessment]),0,14)+IIf(IsNull([PlanRecommendation]),0,14)+IIf(IsNull([AskedForSale]),0,18)+IIf(IsNull([OvercameObjections]),0,10) solved my problem- utilized this and the other half of the problem and then did a separate query to calculate the percentage.
access 2010 - parameters button is disabled
Several If Statements in an access 2007 vba subroutine. Curious if there is another way?
reliable way of overwriting access database on live website
How to specify page width and length for printed (or html) report?
How to bind the contents of a combo box to the value of another
Access VBA: DLookUp function giving type mismatch error
Microsoft Access - If Null then
How do i reference the value of a control in a rowsource query?
How to query number of attachments from Attachment field in Microsoft Access?
Problem adding a row into a typed dataset
Efficient use of calculations in MS Access
Access VBA: Set record source of form on button click
Layout hierarchical issue in an Access report
Creating search query in MSACCESS
How do I automate a saved import in a macro in Access 2007?
How to save a structure to an Access database