Sorry, I am getting a new syntax error now. Here is the whole chunk of code I am using for this section:
Code:
If IsNull(Me.Text0) Then
MsgBox "Enter Note First!", vbInformation, "No Text"
Else
If [pmiDBcheck] = -1 Then
strConString = "<PMI Note> " & Me.Text0
[pmiDBcheck] = 0
Else
'strConString = Me.Text0
strConString = """" & Me.Text0 & """"
End If
strConString2 = fOSUserName()
strConString3 = Now()
strConString4 = Me.ID
'strSQL = "INSERT INTO Table1(D_Name) Values(" & strConName & ");"
strSQL = "Insert Into Main_Tracking_Notes(comment,user,Auto_Date,Main_Tracking_ID) Values(" & strConString & "," & "'" & strConString2 & "'," & "'" & strConString3 & "'," & "'" & strConString4 & "'); "
It is only happening when pmiDBcheck =-1 (the if). It is having a hard time when I add literal text, and the me.text0
How can I get around this? I guess I don't understand how the 4 quotes in a row works.
Thanks.