razorkat99
Still figurin' it out
- Local time
- Yesterday, 19:14
- Joined
- Oct 22, 2007
- Messages
- 35
I have a form where I created a button to open a diff form w/in my db. The form I want to open contains a subform also, so I'm not sure if this is what is giving me grief. When I click on the button I receive the following error:
"The expression On Click you entered as the event property setting produced the following error: A problem occurred while Microsoft Access was communicating with the OLE server or ActiveX control...."
I have the following code associated with the button command:
Private Sub Command4_Click()
On Error GoTo Err_Command4_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "CustCallsDataEntry Frm"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_Command4_Click:
Exit Sub
Err_Command4_Click:
MsgBox Err.Description
Resume Exit_Command4_Click
End Sub
This same code, with the exception of the form names, is in another database and it works just fine.
Any thoughts?
"The expression On Click you entered as the event property setting produced the following error: A problem occurred while Microsoft Access was communicating with the OLE server or ActiveX control...."
I have the following code associated with the button command:
Private Sub Command4_Click()
On Error GoTo Err_Command4_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "CustCallsDataEntry Frm"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_Command4_Click:
Exit Sub
Err_Command4_Click:
MsgBox Err.Description
Resume Exit_Command4_Click
End Sub
This same code, with the exception of the form names, is in another database and it works just fine.
Any thoughts?