I have a database that uses macros that open forms. One one specific form I get a message that network access was interrupted. I'm sure that it isn't t the network because it only, and always, happens with this form.
Thanks for reading this,
Rick
It is a simple macro:
Option Compare Database
Private Sub Form_AfterUpdate()
End Sub
Private Sub Name_AfterUpdate()
Dim SQL As String
End Sub
Private Sub Save_employee_Click()
On Error GoTo Err_Save_employee_Click
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
Exit_Save_employee_Click:
Exit Sub
Err_Save_employee_Click:
MsgBox Err.Description
Resume Exit_Save_employee_Click
Dim SQL As String
SQL = "INSERT INTO secure (name ) " & _
"SELECT '" & Me!Name & "' AS XferName;"
DoCmd.RunSQL SQL
Dim SQL As String
SQL = "INSERT INTO secure (DOB) " & _
"SELECT '" & Me!DOBdate & "' AS XferName;"
DoCmd.RunSQL SQL
End Sub
Thanks for reading this,
Rick
It is a simple macro:
Option Compare Database
Private Sub Form_AfterUpdate()
End Sub
Private Sub Name_AfterUpdate()
Dim SQL As String
End Sub
Private Sub Save_employee_Click()
On Error GoTo Err_Save_employee_Click
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
Exit_Save_employee_Click:
Exit Sub
Err_Save_employee_Click:
MsgBox Err.Description
Resume Exit_Save_employee_Click
Dim SQL As String
SQL = "INSERT INTO secure (name ) " & _
"SELECT '" & Me!Name & "' AS XferName;"
DoCmd.RunSQL SQL
Dim SQL As String
SQL = "INSERT INTO secure (DOB) " & _
"SELECT '" & Me!DOBdate & "' AS XferName;"
DoCmd.RunSQL SQL
End Sub