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

A better SSMS? [closed]
Show code from from thru code (in ms access)
Some access 2007 programming questions on forms
Converting Rows to column
Code or the control properties, which is better in MS-ACCESS?
Changing The Data Type from Float to?
Connection to Oracle via VBScript
Is there a way to submit an InfoPath form to an Access database if the form was designed first?
Copying a record in VBA 2 (the new question)
Access 2007 DAO VBA Error 3381 causes objects in calling methods to “break”
ms access reports and queries
Passing variables from child to master form
Query to find the running sum of a column(qty) based on type(if 'a' add else subtract)
Can't create blank form in MS Access
How to give where condition in the select query?
What is the order of form/report events in MS Access?

Categories

HOME
pandas
jdo
ngrx
plone
relayjs
fme
tesseract
alfresco
disassembler
wamp
directx
floating-action-button
correlation
google-apps-marketplace
google-cloud-spanner
leiningen
jsprit
ghc
aurigma
connection-string
swiftlint
one-hot-encoding
telerik-reporting
tibco-mdm
dxf
firebase-crash-reporting
java-7
shopware
fish
typo3-6.2.x
jspm
madlib
media-queries
xquery-3.0
jspresso
atl
revolution-slider
qwerty
event-driven
occlusion
sharefile
opshub
keydown
sas-jmp
menuitem
taffy
hls.js
veracode
mu
colorama
darcs
diagnostics
libusb-win32
snmptrapd
python-cryptography
flutterwave
imanage
lync-client-sdk
phishing
nsfilemanager
autorest
lua-5.1
hover-over
ios4
system.management
phpcas
cartesian-product
riak-cs
cakephp-3.1
myo
lustre
xc16
applescript-objc
mesa
uitouch
navigationservice
fluentautomation
jubula
farseer
soundtouch
back-stack
hungarian-algorithm
sharp-repository
html-editor
funscript
word-processor
dbproviderfactories
appconkit
cufon
deobfuscation
table-footer
asp.net-mvc-areas
dbal
bespin
compiler-specific
avatar
genealogy
.net-1.0
document-conversion

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