SQL Instruction

G

gatarossi

Dear all,

I'm trying to do a consult in ms access from excel, but in this
segment of SQL doesn´t work:

My problem is in: m and yyyymm, I have already put "m", 'm' but it
doesn´t work.

CStr(Format(DateAdd(m,(-[period]),CDate(Left([year_month],4) & " - " &
Mid([year_month],5,2))), yyyymm) & Mid([year_month],7)) AS Expr1

How can I solve this problem?

Thanks a lot!!!

André.
 

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

Similar Threads

SQL - Sum Values 0
Unique Values from Access - Very difficult! 2
* in sql instruction 2
SQL Instruction 0
Changing a SQL Instuction 0
SQL instruction 1
How to create a "dynamic" sql code 1
'*' in sql instruction 0

Top