I am attempting to compile the syntax below to dynamically create a query using DAO. However, I keep getting an error of (on the "1")
Expected End Of Statement
What do I need to alter in this syntax so that it will compile & execute properly?
Code:Dim va1213 As String va1213 = "Bojava12" qdf.SQL = "SELECT [storeRef].[empID], [storeRef]." & va1213 & " FROM storeRef WHERE ((([storeRef]." & va1213 & ") >= "1")) ORDER BY [storeRef].[empID];"