I have a main switchboard that autoexecs. One of my command buttons on the switchboard is not working and I cannot get it working for the life of me. I just want it to open up another form. The form I am opening is "Old Quote" and the name of the Button is [OldQuote]
The code that I have now is as follows....I just got it from the command button wizzard:
Private Sub OldQuote_Click()
On Error GoTo Err_Old Quote_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName="Old Quote"
DoCmd.OpenForm st DocName,,,stLinkCriteria
Exit_OldQuote_Click:
Exit Sub
Err_OldQuote_Click:
MsgBox Err.Description
Resume Exit_OldQuote_Click
End Sub
When I try to run the button I get that the On Click produced following error: Ambiguous name detected: Old_Quote_Click.
What am I doing wrong? Thanks.
Brad
The code that I have now is as follows....I just got it from the command button wizzard:
Private Sub OldQuote_Click()
On Error GoTo Err_Old Quote_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName="Old Quote"
DoCmd.OpenForm st DocName,,,stLinkCriteria
Exit_OldQuote_Click:
Exit Sub
Err_OldQuote_Click:
MsgBox Err.Description
Resume Exit_OldQuote_Click
End Sub
When I try to run the button I get that the On Click produced following error: Ambiguous name detected: Old_Quote_Click.
What am I doing wrong? Thanks.
Brad