I'm sorry I hadn't had a chance to try it yet, I finally went to bed at 5 am.
Ok, after changing the few things that you sent, it works great! Thanks you!
I am sorry to ask, but I am trying now to add a second field in that vb code to update with the username, and would also like to add a third field as well. I'm a newbie at VB so I am doing something wrong, thanks for your patients.
Here is what I have:
Code:
Private Sub Command19_Click()
On Error GoTo Err_Command19_Click
Dim strConString As String
Dim strSQL As String
Dim strSQL2 As String
If IsNull(Me.Text0) Then
MsgBox "Enter Note First!", vbInformation, "No Text"
Else
strConString = "<Auto Note> " & " " & Me.Text0
strConString2 = fOSUserName()
strSQL = "Insert Into Main_Tracking_Notes(comment) Values(" & "'" & strConString & "'); Insert Into Main_Tracking_Notes(user) Values(" & "'" & strConString2 & "');"
DoCmd.SetWarnings False
DoCmd.RunSQL strSQL
DoCmd.SetWarnings True
Me.Requery
End If
Exit_Command19_Click:
Exit Sub
Err_Command19_Click:
MsgBox Err.Description
Resume Exit_Command19_Click
End Sub
So I tried to add another thing to the strSQL line, but I think that is wrong. I'm not sure where to put it.