richied123
New member
- Local time
- Today, 11:41
- Joined
- Feb 23, 2007
- Messages
- 9
Hi there,
I've gone blind looking for the syntax error in the code below. Can anyone help me spot it?
Sorry if it looks messy - I haven't posted code on the site before.
Thanks,
Richard
I've gone blind looking for the syntax error in the code below. Can anyone help me spot it?
Sorry if it looks messy - I haven't posted code on the site before.

Thanks,
Richard
Code:
'This is the code to ensure UK dates run through the fnDate function
myDateEntered = fnDate(Me.txtDateEntered)
myRequestReceived = fnDate(Me.txtRequestReceived)
myNextActionDate = fnDate(Me.txtNextActionDate)
'Add the form details into the appropriate table
rdSQL = "INSERT INTO tblAccounts (RefNum, DateEntered, EnteredBy, CourtName, AccountType, " & _
"ContactName, RequestReceived, RequestAuthorised, RequestRejected, ReceiptConfirmed, ReceiptChaser1, " & _
"ReceiptChaser2, CompletionConfirmed, CompletionChaser1, CompletionChaser2, Status, NextAction, NextActionDate, FullyComplete) VALUES" & _
"('" & myRefNum & "', " & myDateEntered & ", '" & Nz(Me.txtEnteredBy, "") & "', '" & Me.txtCourtName & "', '" & Me.cboAccountType & "'," & _
" '" & Me.txtContactName & "', " & myRequestReceived & "," & _
" '" & Nz(Me.cboAuth, "") & "', '" & Nz(Me.cboRejected, "") & "', '" & Nz(Me.cboReceipt, "") & "', '" & Nz(Me.txtReceiptChaser1, "") & "', '" & Nz(Me.txtReceiptChaser2, "") & "'," & _
" '" & Nz(Me.cboComplete, "") & "', '" & Nz(Me.cboCompleteChaser1, "") & "', '" & Nz(Me.cboCompleteChaser2, "") & "', " & OPGStatus & "," & _
" '" & Nz(Me.txtNextAction, "") & "', " & myNextActionDate & ", '" & Nz(Me.cboFullyComplete, "") & "')"