site (Visitor) Aug 8, 2001
Hi, All,
I have a Access project, and connect to SQL server.
In the form I create "Add New" buttom, but doesn't work.
The following are my codes:
Sub AddNew_Click()
On Error GOTO Err_AddNew_Click
Dim strDocName As String
strDocName = "frmComplaints"
Docmd.OpenForm strDocName, , , , acAdd
ExitAddNew_Click:
Exit Sub
Err_AddNew_Click:
Msgbox Err.Description
Resume Exit_AddNew_Click
End Sub
Hope help.
Thanks a lot.
Jing
Hi, All,
I have a Access project, and connect to SQL server.
In the form I create "Add New" buttom, but doesn't work.
The following are my codes:
Sub AddNew_Click()
On Error GOTO Err_AddNew_Click
Dim strDocName As String
strDocName = "frmComplaints"
Docmd.OpenForm strDocName, , , , acAdd
ExitAddNew_Click:
Exit Sub
Err_AddNew_Click:
Msgbox Err.Description
Resume Exit_AddNew_Click
End Sub
Hope help.
Thanks a lot.
Jing