Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Line Continuation gives syntax error
Message
From
30/08/2001 12:46:07
 
 
To
30/08/2001 12:18:29
General information
Forum:
Microsoft Office
Category:
Access
Miscellaneous
Thread ID:
00550935
Message ID:
00550953
Views:
9
This message has been marked as the solution to the initial question of the thread.
>Any idea why I get a syntax error when I change:
>
>
DoCmd.RunSQL ("INSERT INTO temp_mold Select trknum, sysdate, catalog From Product where trknum=" & Me.Text53 & ";")
>
>to
>
>
DoCmd.RunSQL ("INSERT INTO temp_mold Select trknum, sysdate, _
>catalog From Product where trknum=" & Me.Text53 & ";")
>
>
>The first example works fine. The only thing different in the second is the line continuation but it errors out. Thanks in advance for any help

I believe for strings you need to close the first line and concatenate the second line for this to work:
DoCmd.RunSQL ("INSERT INTO temp_mold Select trknum, sysdate," _
    & "catalog From Product where trknum=" & Me.Text53 & ";")
HTH
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform