I'm trying to learn this stuff on my own and a lot of help from thif forum so what is wrong with my SQL statement? I'm getting a syntax error?
Private Sub Command0_Click()
Dim strdb As String, strSQL As String
Dim myname As String, mypass As String
strdb = "P:\Toolroom\ToolRoom.mdb"
strSQL = "INSERT INTO tbltooling ([Username],[Password]IN" & strdb & _
"VALUES('" & myname & "','" & mypass & "');"
DoCmd.RunSQL strSQL
End Sub
Any help would be 1derfull
Thanks the rib
Quit saying hot water heater! Nobody wants to heat hot water.
Private Sub Command0_Click()
Dim strdb As String, strSQL As String
Dim myname As String, mypass As String
strdb = "P:\Toolroom\ToolRoom.mdb"
strSQL = "INSERT INTO tbltooling ([Username],[Password]IN" & strdb & _
"VALUES('" & myname & "','" & mypass & "');"
DoCmd.RunSQL strSQL
End Sub
Any help would be 1derfull
Thanks the rib
Quit saying hot water heater! Nobody wants to heat hot water.