D
Dirty70Bird
Hello,
Got a Form called switchboard, I would like to open another form, Concern
Analysis, based upon a value that is present in a text box on the switchboard.
I already have the button on the switchboard to open the 2nd form that are
linked on the primarey key, Analysis Number.
See the code below:
Private Sub Open_Concern_Analysis_Click()
On Error GoTo Err_Open_Concern_Analysis_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "RepairForm"
stLinkCriteria = "[AnalysisNumber]=" & Me![AnalysisNumber]
DoCmd.OpenForm stDocName, , , stLinkCriteria
''something like: If textbox= true, then open Concern Analysis
Exit_Open_Black_Tie_Concern_Analysis_Rep:
Exit Sub
Err_Open_Concern_Analysis_Click:
MsgBox Err.Description
Resume Exit_Open_Concern_Analysis_Rep
End Sub
TIA!!!
Got a Form called switchboard, I would like to open another form, Concern
Analysis, based upon a value that is present in a text box on the switchboard.
I already have the button on the switchboard to open the 2nd form that are
linked on the primarey key, Analysis Number.
See the code below:
Private Sub Open_Concern_Analysis_Click()
On Error GoTo Err_Open_Concern_Analysis_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "RepairForm"
stLinkCriteria = "[AnalysisNumber]=" & Me![AnalysisNumber]
DoCmd.OpenForm stDocName, , , stLinkCriteria
''something like: If textbox= true, then open Concern Analysis
Exit_Open_Black_Tie_Concern_Analysis_Rep:
Exit Sub
Err_Open_Concern_Analysis_Click:
MsgBox Err.Description
Resume Exit_Open_Concern_Analysis_Rep
End Sub
TIA!!!