D
Del
What Access 2000 code can I use to create a new record in a table? The table
is not the record source for the form where I have the code.
is not the record source for the form where I have the code.
What Access 2000 code can I use to create a new record in a table? The table
is not the record source for the form where I have the code.
ruralguy via AccessMonster.com said:Something like:
Dim MySQL As String
MySQL = "Insert Into tblNAME(FIELD1, FIELD2, FIELD3) " & _
"Values( '" & Me.txtFIELD1 & "','" & Me.txtFIELD2 & "',27)"
CurrentDB.Execute MySQL, dbFailOnError
Set db = Nothing
Using YOUR FIELD AND CONTROL NAMES of course.
thank you for the code[quoted text clipped - 11 lines]Something like:
Dim MySQL As String