Dim formSelect as Number
formSelect = InputBox("1. Form A, 2. Form B:", "formSelect")
If formSelect = 1 Then
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "form_a"
DoCmd.OpenForm stDocName, , , stLinkCriteria
End If
If formSelect = 2 Then
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "form_b"
DoCmd.OpenForm stDocName, , , stLinkCriteria
End If