I am wanting to get some data from an Access table based on multiple criteria and I'm not sure if my criteria is working and I can't seem to find anything that would let me verify it.
the query as it stands is
As you can see I want ot chek if Pay_Pack is either null or blank AND Exp_Month equals the text string of the date in the referred to cell.
Can anyone confirm if this is the correct way to use AND & OR?
TIA
the query as it stands is
Code:
strQuery = "SELECT Name, Wage, Pre_App_Adds, Food, Home_Start, Other, Mileage_Pay, Holiday_Pay, Gross_Pay, ID " & _
"FROM Data WHERE (Pay_Pack=''"" OR isnull(pay_pack)) AND Exp_Month = '" & Format(Range("UL_AccrualsMonth"), "mmm yy") & "'"
Can anyone confirm if this is the correct way to use AND & OR?
TIA