I have been exploring Access 2002 and have found something, that I have not been able to get an answer about. Perhaps someone here can point me where there is more information.
I have created a macro that opens a form.
I can attach the macro to the onClick event and have the form open correctly.
However, if I attempt to create the macro button utilizing the Command Button Wizard, the code that is generated locks up Access. Frankly I don't see anything wrong with the code.
I have also noticed that I have periodically recieved an error message indicating that Visual SourceSafe Client is not installed
This is an Access 2000 database running under XP, which may be part of the problem.
Any suggestions?
Dawn
I have created a macro that opens a form.
I can attach the macro to the onClick event and have the form open correctly.
However, if I attempt to create the macro button utilizing the Command Button Wizard, the code that is generated locks up Access. Frankly I don't see anything wrong with the code.
Code:
Private Sub cmdContact_Click()
On Error GoTo Err_cmdContact_Click
Dim stDocName As String
stDocName = "mfrmMyContact"
DoCmd.RunMacro stDocName
Exit_cmdContact_Click:
Exit Sub
Err_cmdContact_Click:
MsgBox Err.Description
Resume Exit_cmdContact_Click
End Sub
This is an Access 2000 database running under XP, which may be part of the problem.
Any suggestions?
Dawn