G
Garret Hurd
I cannot seem to get this to run in access 2k. I can do:
DoCmd.SetWarnings False
DoCmd.RunSQL StrInsertPnONLY
DoCmd.SetWarnings True
I do not understand what is wrong with
Public Sub thisisatest()
Dim db As Database
Dim strSQL As String
Dim rs As Recordset
strSQL = "insert into tbl_NextToTest (PN) values ('305-0125-006')"
Set db = CurrentDb
Set rs = db.OpenRecordset(strSQL, dbOpenDynaset)
End Sub
any ideas????
Thanks
DoCmd.SetWarnings False
DoCmd.RunSQL StrInsertPnONLY
DoCmd.SetWarnings True
I do not understand what is wrong with
Public Sub thisisatest()
Dim db As Database
Dim strSQL As String
Dim rs As Recordset
strSQL = "insert into tbl_NextToTest (PN) values ('305-0125-006')"
Set db = CurrentDb
Set rs = db.OpenRecordset(strSQL, dbOpenDynaset)
End Sub
any ideas????
Thanks