ms-access


Invalid Syntax using DLookUp


Fiddling around with the DLookUp Function in MS Access and I was pretty confident in what I had written but I guess not since it's yelling at me again... I'm using a DLookUp as a control source for a text box where I'm trying to get the Month from another text box as one of the criteria fields. Hopefully a fresh pair of eyes can point me in the right direction of what's wrong with it? Thanks in advance.
=DLookUp("Format([QA_Overall],'Percent')","tblScorecard","[Audit Month]='"&[Forms]![Copy Of frmScorecard]![txtMonth]&"'" And [Region]=10")
I suspect that this is happening because of the Region Criteria. Try something like the below:
=DLookup("Format([QA_Overall],'Percent')","tblScorecard","[Audit Month]=" & [Forms]![Copy Of frmScorecard]![txtMonth] & " AND [Region] = 10")
Let me know if this helps.
Edit: I have changed the criteria. Try this Version.

Related Links

Get 10 access using Microsoft access
Simple IF statements not working
Retaining File Path - Access/VB Common Dialogue DLL
Get all queries from Microsoft access
Why do MS Access front-ends increase in size over time?
Access VBA Query is working properly, but the Form isn't filtering. New Record causing issue?
MS Access : How to relatively refer to a control in master form from subform control for a formula?
MS Access Query - Total Week Hours Worked
SQL Query to MS SQL - Parameter Value
Complex fill in the blanks query in MS Access 2010
Compile Error: User Type Not Defined - MS Access
MSAccess - Requery a Subform After Insert?
MS Access 2016 won't open an .accdb file because it 'was created in a previous version'. Is there a fix?
Export data from Access 2010 to Excel 2013
Access SQL query to match column data with row criteria and fetch score
Disabled Mode, Microsoft Access 2016

Categories

HOME
twitter
log4j
reserved
relay
q
gis
graphql
rdf
sqlite3
packages
umd
echarts
upload
tomcat6
offline
quickbooks
hex-editors
progressive-web-apps
facebook-page
jsdoc
propel
beyondcompare
swingx
cloudhub
functional-testing
google-search-api
dxf
xpages-ssjs
facet
wtx
jaxb2
catel
code-contracts
repo
y86
html5-fullscreen
catalog
jmonkeyengine
appfabric
dosbox
simplexml
serverside-rendering
streamreader
lumberjack
http-redirect
node-sass
google-datalayer
pango
clean-architecture
alphabet
powercli
font-size
sonarlint-vs
objective-c-swift-bridge
static-ip-address
libpng
infix-notation
azure-virtual-network
transmitfile
paypal-express
qpid
qgraphicsview
whois
wapiti
jfugue
srand
eclipse-clp
sysinternals
graph-drawing
cisco-ios
bridge.net
e10s
gwidgets
oxwall
network-interface
google-style-guide
applescript-objc
preferences
internet-connection
html-helper
googlemock
code-access-security
bitcoinj
php-5.4
eol
funcunit
bundles
algebraic-data-types
mysqltuner
page-layout
runtime.exec
ocunit
angularjs-controller
anonymous-methods
mhtml
bitsharp
cisco-jtapi
bluepill
qt-jambi
mongomapper
dbal
firefox-5
virtual-functions
avatar
grid-system
commodore

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