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.
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