This is a small part of my code where I am pulling all the columns below from a query I created [REG - Master - Summary - Final]. I attempt to run and get a syntax error(missing operator). I think my error is near the end of the string in my WHERE statement, or my LIKE statement. Any thoughts??
Thanks!
strSQL = "Select [Fiscal Year/Program], [Amount Appropriated], [SumOfSumOfAllocation], [SumOfCurrent Obligated Amount], [SumOfDraw Downs], [SumOfAward Balance], [SumOfCurrent Holds], [SumOfAvailable Funds], [SumOfNumber of Awards], [SumOfSumOfNumber of Awards with Holds], [Pct of Draw Downs], [Pct of Award Balance], [Pct of Current Holds], [Pct of Available Funds], [Pct of Award Balance on Hold], [Pct of Award Balance Available] From [REG - Master - Summary - Final] WHERE [Region] = '" & stRegions & "'AND WHERE [Fiscal Year/Program]LIKE " & mycrit
Thanks!
strSQL = "Select [Fiscal Year/Program], [Amount Appropriated], [SumOfSumOfAllocation], [SumOfCurrent Obligated Amount], [SumOfDraw Downs], [SumOfAward Balance], [SumOfCurrent Holds], [SumOfAvailable Funds], [SumOfNumber of Awards], [SumOfSumOfNumber of Awards with Holds], [Pct of Draw Downs], [Pct of Award Balance], [Pct of Current Holds], [Pct of Available Funds], [Pct of Award Balance on Hold], [Pct of Award Balance Available] From [REG - Master - Summary - Final] WHERE [Region] = '" & stRegions & "'AND WHERE [Fiscal Year/Program]LIKE " & mycrit