pcsunaccess
IS-IT--Management
I am trying to add a small functionality to the existing database. The existing form has a few text boxes that are filled in with data and the data is inserted into the tables in the db, when add button is clicked. I have added few more text boxes to the same form and I am trying to insert the data into the same table. When I opened the addclick button's code I could only see the following code:
Private Sub AddButton_Click()
If Not cTestMode Then On Error GoTo ErrPlace
If Me.Dirty Then
DoCmd.RunCommand acCmdSaveRecord
End If
DoCmd.GoToRecord acDataForm, Me.Name, acNewRec
Exitplace:
Exit Sub
ErrPlace:
If Err.Number <> cDoCmdError Then
MsgBox Err.Number & ": " & Err.Description, vbOKOnly, cDBName
End If
Resume Exitplace
End Sub
I don't see the code with the 'INSERT' statements and other SQL queries. Where else do I find them? Thanks.
Private Sub AddButton_Click()
If Not cTestMode Then On Error GoTo ErrPlace
If Me.Dirty Then
DoCmd.RunCommand acCmdSaveRecord
End If
DoCmd.GoToRecord acDataForm, Me.Name, acNewRec
Exitplace:
Exit Sub
ErrPlace:
If Err.Number <> cDoCmdError Then
MsgBox Err.Number & ": " & Err.Description, vbOKOnly, cDBName
End If
Resume Exitplace
End Sub
I don't see the code with the 'INSERT' statements and other SQL queries. Where else do I find them? Thanks.