Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mismatch error opening form from code 1

Status
Not open for further replies.

tigersden

Technical User
Apr 16, 2003
81
GB
Hi All,
I am unable to get the following code to open the selected form.

Private Sub cmdOpenSelected_Click()
Dim stDocName As String
Dim stLinkCriteria As String

On Error GoTo Err_cmdOpenSelected_Click

Select Case fraChooseForm.Value
Case Is = 1
stDocName = "frmRisk#1"
Case Is = 2
stDocName = "frmUpdateReviewDates"
End Select

DoCmd.OpenForm stDocName, acNormal, , , stLinkCriteria
...........Rest Of error trapping...........
End sub
 
DoCmd.OpenForm stDocName, acNormal, , stLinkCriteria

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Many thanks PHV!!
Maybe one day I will get the hang of Access.
Thanks
Tim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top