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.
--
RuralGuy (RG for short) aka Allan Bunch MS Access MVP - acXP WinXP Pro
Please post back to this forum so all may benefit.