• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Macro compile time error

Status
Not open for further replies.

pavan81

New Member
Hi All,

i have query i have table with 57 fields in sqlserver and when i writing query in macro it showing syntax error. .

and my query is
conn.Execute "insert into dbo.MASTER_DATA (DATE, CALL_ID, CHANNEL, REGION, AREA, ANCHOR_ZONE, REPORTING_MANAGER, TBIZONE, TBI, TBI_ID, ROLE_ID, DESIGNATION, TBI_CONT, WAREHOUSE_ID, DBR_CODE, DBR, ORDERDONEBY_WAREHOUSE, BEAT_ID, BEAT, OUTLET_ID, OUTLETNAME, OUTLET_ADDRESS, OUTLET_TYPE, .......57)" & _
"values ('"&DTRANGE&"', '"&C_ID&"', '"&CHANNEL&"', '"&REGION&"', '"&AREA&"', '"&AZONE&"', '"&RM&"', '"&TZONE&"', '"&TBI&"', '"&TBI_ID&"', '"&ROLEID&"', '"&DESG&"', '"&TBI_CONT&"', '"&W_ID&"', '"&DBRCODE&"', '"&DBR&"', '"&ODBW&"', '"&BEATID&"', '"&BEAT&"', '"&OLSID&"', '"&OLSNAME&"', ........')"

Plz help me.

Regards
Pavan
 
pavan81
Why did You duplicate Your thread?
You can continue with Your original thread.
This is closed.
 
Status
Not open for further replies.
Back
Top