xanadude
Newbie - but learning fas
- Local time
- Today, 08:37
- Joined
- Feb 2, 2011
- Messages
- 65
Hi All
I was hoping somebody could help as I am using the RunSQL to insert data from a form into a table using the following code.
This works at present but I need to modify a few area to use the Replace option for issues when entering quotes. Example :& Replace(Me.WowNotes, "'", "''") &
But my problem is I have hit the line length on the Values line and wish to spread this over a couple of lines to get it to work and enter all the fields.
Advice much appreciated
Thanks
I was hoping somebody could help as I am using the RunSQL to insert data from a form into a table using the following code.
Code:
DoCmd.RunSQL "INSERT INTO Bowers_Core_Table ([weekCommence],[agentName],[auditor],[ref],[greeting_1],[greeting_2],[greeting_3],[greetingTotal],[greetingNotes],[DPAFail],[DPA],[DPATotal],[DPANotes],[throughout_1],[throughout_2],[throughout_3],[throughout_4],[throughoutTotal],[throughoutNotes],[resolve_1],[resolve_2],[resolve_3],[resolveNotes],[resolveTotal],[close],[closeNotes],[notes_1],[notes_2],[notes_3],[notes_4],[notesTotal],[notesNotes],[FirstCallResolution],[FCRNotes],[TotalScore],[PCUsed],[WindowLogon],[DateScored],[WOW],[WOWNotes])" & _
"VALUES ('" & Me.weekCommence & "','" & Me.agentName & "','" & Me.auditor & "','" & Me.refNumber & "','" & Me.greeting1y & "','" & Me.greeting2y & "','" & Me.greeting3y & "','" & Me.greetingScore & "','" & Me.greetingNotes & "','" & Me.DPAn & "','" & Me.DPAy & "','" & Me.DPAScore & "','" & Me.DPANotes & "','" & Me.Throughout1y & "','" & Me.Throughout2y & "','" & Me.Throughout3y & "','" & Me.Throughout4y & "','" & Me.throughoutScore & "','" & Me.throughoutNotes & "','" & Me.Resolve1y & "','" & Me.Resolve2y & "','" & Me.Resolve3y & "','" & Me.resolveNotes & "','" & Me.ResolveScore & "','" & Me.closey & "','" & Me.closeNotes & "','" & Me.notes1y & "','" & Me.notes2y & "','" & Me.notes3y & "','" & Me.notes4y & "','" & Me.notesScore & "','" & Replace(Me.notesNotes, "'", "''") & "','" & Me.fcry & "','" & Replace(Me.FCRNotes, "'", "''") & "','" & Me.TotalScore & "','" & Environ("COMPUTERNAME") & "','" & Me.auditor & "','" & Me.EntryDate & "','" & Me.WOWCheck & "','" & Replace(Me.WowNotes, "'", "''") & "')"
This works at present but I need to modify a few area to use the Replace option for issues when entering quotes. Example :& Replace(Me.WowNotes, "'", "''") &
But my problem is I have hit the line length on the Values line and wish to spread this over a couple of lines to get it to work and enter all the fields.
Advice much appreciated
Thanks