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

How to get rid of the navigation pane?
ACCESS - calculating prices
Create a query from two tables, one with items in several columns, the other with its corresponding values
microsoft access executable form
ACCESS: How to use compare German date time in access Query
Is there a way to set up an ODBC DSN to an Access accdc backend database?
Comma separating text in field in MS Access 2016 Query
Changing Fields in Access won't show change in Visual Studio 2015
Access re-execute query when I try to close it
MS access how to make footer for only front page
VBA Userform Path/File Access Error - Error 75
UNC-linked data in Access MDB is read-only
Stop Access from Auto assigning Datatypes
Validate password against its username in Access
SQL Update with 0 if no match
VB6 application and a protected access database

Categories

HOME
gitlab
google-api-php-client
hashmap
dot
webstorm
youtube-dl
maven-3
electronics
fsm
sql-server-2016
indesign
primary-key
windows-10-universal
spring-xd
handsontable
collectd
windows-server-2012
decimal
vaadin7
angular-ui
footer
aurigma
amazonsellercentral
jasonette
sylius
realex-payments-api
kudan
telerik-reporting
microsoft-r
trading
kannel
phpfox
publish
replaceall
sql-server-2012-express
oracle-fusion-middleware
karaf
catch-all
mozilla
file-format
bitbucket-pipelines
twitch
galen
avro4s
ibpy
nomethoderror
http-redirect
flashair
s
slick-3.0
atomicity
errordocument
promela
hendrix
datastax-startup
tizen-native-app
directory-structure
color-profile
orthogonal
crosswalk-runtime
messenger
nested-sets
firmata
instant
azure-sdk
rotativa
elements
skobbler-maps
bstr
contact-list
yaws
apachebench
suffix-tree
pagerank
nessus
goose
marching-cubes
collapse
intellij-14
jmeter-maven-plugin
wyam
dukescript
sframe
service-accounts
sailfish-os
apache-commons-fileupload
dundas
key-management
graph-api-explorer
codeigniter-url
tt-news
rdl
valueconverter
poller
datagridviewcolumn
centos5
imdbpy
dataservice
ril
hungarian-algorithm
sabredav
wsdl-2.0
jquery-knob
bluepill
multipage
hosts-file
qtkit
netbeans-6.9
gnustep
doh
external-accessory
inotifycollectionchanged
iphone-web-app
blitz++
mozilla-prism
avatar
anti-piracy
mediarss
windows-live-messenger

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