I am having problems with an insert sql query which is triggered by clicking a button on a form. My code is:
DoCmd.RunSQL "insert into tblInvoice(invScID, invSeries, invNumber, invPreCode, invJournal, invAddress, invLine1, invOrderNo1, invQuantity1, invTotal, invCurrency,invStatus, invSubscriberID, invReferenceAddress, invOldSubscriberID)values('" & Text72 & "','3','" & Text65 & "','RC','3','" & Text40 & "','" & Text53 & "','" & Text55 & "','" & Text57 & "','" & Text49 & "','" & Text51 & "','6','" & Text63 & "','" & Text59 & "','" & Text61 & "')"
DoCmd.OpenReport "rptCreditNote", acViewPreview.
The error I'm getting is 3075 Syntax error (missing operator) in query expression " Annales de Linstitut Fourier...(rest of address).
This is odd as it works sometimes and others not, and seems to have a problem with the address field, (text 53)
Can anyone help?
Thanks
Steph
DoCmd.RunSQL "insert into tblInvoice(invScID, invSeries, invNumber, invPreCode, invJournal, invAddress, invLine1, invOrderNo1, invQuantity1, invTotal, invCurrency,invStatus, invSubscriberID, invReferenceAddress, invOldSubscriberID)values('" & Text72 & "','3','" & Text65 & "','RC','3','" & Text40 & "','" & Text53 & "','" & Text55 & "','" & Text57 & "','" & Text49 & "','" & Text51 & "','6','" & Text63 & "','" & Text59 & "','" & Text61 & "')"
DoCmd.OpenReport "rptCreditNote", acViewPreview.
The error I'm getting is 3075 Syntax error (missing operator) in query expression " Annales de Linstitut Fourier...(rest of address).
This is odd as it works sometimes and others not, and seems to have a problem with the address field, (text 53)
Can anyone help?
Thanks
Steph