ms-access


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.

Related Links

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

Categories

HOME
cakephp
java
variables
gerrit
proxy
amazon-ec2
gremlin
lodash
syntax
vmware
sqlite-net-extensions
analysis
fsm
directx
cloudkit
python-unittest
google-translate
gnupg
midi
vb.net-2010
phaser
telephony
finite-automata
kryo
opencover
css-animations
realex-payments-api
shopware
qhull
spark-jobserver
brunch
traffic
filezilla
large-file-upload
libssl
gsoap
flink-streaming
instant-messaging
catch-all
mpmediaquery
wpf-controls
broadcastreceiver
optix
botbuilder
gpx
jsch
rainbowtable
dotnetzip
sqlclient
namecoin
capacity
python-cryptography
lync-client-sdk
sonarlint-vs
blacklist
eventkit
parallel-data-warehouse
gridpane
bonobo
autorest
firebaseui
gstreamer-0.10
xpath-1.0
wapiti
jfugue
javax.sound.midi
intel-fortran
t4mvc
muse
twirl
sankey-diagram
remobjects
nsmutabledictionary
android-nested-fragment
rdtsc
titanium-modules
code-access-security
yorick
braille
message-driven-bean
fmod
ivyde
ccss
apc
django-nonrel
chronoforms
plasma
kyotocabinet
free-variable
simba
rdoc
labwindows
libc++
gnustep
heartbeat
servicehost
yetanotherforum
table-footer
calling-convention
sudzc
routedevent
private-members
lzh
caching-application-block

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App