Re: same insert into problem

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



"Bongard" <b.bomgren@xxxxxxxxx> wrote in message
news:1158765849.557585.144350@xxxxxxxxxxxxxxxxxxxxxxxxxxx
The new error, when I click debug, does not point there anymore it now
points to (or makes yellow) the line with the insert into statement.

strsql = "Insert Into [tbl_Transactions] ([Loan Number], [Notes]) " &
"Values(" & [Loan Number] & "," & Chr(34) & Replace([LoanNotes],
Chr(34), Chr(34) & Chr(34)) & Chr(34) & ")"

Was that statement originally all on one line, or was it broken onto
three lines the way I see it in your post? If you had it on three lines
in your original code, you need to include the line continuation
characters, as I originally posted it. Did you try copying and pasting
exactly this:

strsql = _
"Insert Into [tbl_Transactions] ([Loan Number], [Notes]) " & _
"Values(" & [Loan Number] & "," & _
Chr(34) & _
Replace([LoanNotes], Chr(34), Chr(34) & Chr(34)) & _
Chr(34) & ")"

into your code?

--
Dirk Goldgar, MS Access MVP
www.datagnostics.com

(please reply to the newsgroup)


.



Relevant Pages

  • Re: Close Access From An ASP Page
    ... Copy your original code into it, ... >> Please reply to the newsgroup. ... This email account is my spam trap so I ...
    (microsoft.public.scripting.vbscript)
  • Re: CDC::SelectObject
    ... [some advice] ... not the original code. ... for the newsgroup, ... All bitmaps are valid and work fine ...
    (microsoft.public.vc.mfc)
  • Re: CDC::SelectObject
    ... Given how many times we have people submitting code examples that actually *are* the ... complete original code, with no error checking, I've learned to insist that error checking ... for the newsgroup, ... All bitmaps are valid and work fine ...
    (microsoft.public.vc.mfc)
  • Re: pass variable from an applet to another one
    ... > ERRATA-CORRIGE ... N.B. It is wrong only my message to this newsgroup, the original code that I ... Prev by Date: ...
    (comp.lang.java.programmer)
  • Re: append contents of field to another field
    ... Dirk Goldgar, MS Access MVP ... (please reply to the newsgroup) ... Prev by Date: ...
    (microsoft.public.access.formscoding)