Hi, all! Hopefully, you can help. I want to automatically insert information into several tables from a form. I want the records appended after I create a new record. I have developed the following code:
Private Sub Form_AfterInsert()
Dim mySQL As String
mySQL = "Insert INTO Policy Information (AcctID,PolicyCmts)"
mySQL = mySQL + " Values (& Me.AcctID &, '& Me.Account_Name &')"
End Sub
The code appears to run fine. However, a record is not appended to the Policy Information Table. Any ideas? Thanks in advance!
Private Sub Form_AfterInsert()
Dim mySQL As String
mySQL = "Insert INTO Policy Information (AcctID,PolicyCmts)"
mySQL = mySQL + " Values (& Me.AcctID &, '& Me.Account_Name &')"
End Sub
The code appears to run fine. However, a record is not appended to the Policy Information Table. Any ideas? Thanks in advance!