Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Line Continuation gives syntax error
Message
De
30/08/2001 12:46:07
 
 
À
30/08/2001 12:18:29
Information générale
Forum:
Microsoft Office
Catégorie:
Access
Divers
Thread ID:
00550935
Message ID:
00550953
Vues:
11
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform