Missing Syntax

H

Heather

Can anyone see what I am missing?

My original statement was this,

sql = "select TERR1,CATEGORY from tbl_ivo_ytd group by
TERR1,CATEGORY order by TERR1"

Needed to add month year part..

sql = "select TERR1,CATEGORY from tbl_ivo_ytd group by
TERR1,CATEGORY order by TERR1 where TRADE_MONTH = " & m
& " And TRADE_YEAR = " & y & ""
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top