A
Annemarie
I have a button on a form that when you click on it, opens a data entry form.
When I click on the button, it opens the form, but it's blank. There are no
fields displayed. Here is the SQL for the button:
-------------------------------
Private Sub AddContact_Click()
On Error GoTo Err_AddContact_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "add_contact"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_AddContact_Click:
Exit Sub
Err_AddContact_Click:
MsgBox Err.Description
Resume Exit_AddContact_Click
End Sub
When I click on the button, it opens the form, but it's blank. There are no
fields displayed. Here is the SQL for the button:
-------------------------------
Private Sub AddContact_Click()
On Error GoTo Err_AddContact_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "add_contact"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_AddContact_Click:
Exit Sub
Err_AddContact_Click:
MsgBox Err.Description
Resume Exit_AddContact_Click
End Sub