I've created a few different forms to aid users in updating information and a selection form with a combobox to open the appropriate form for the ID# selected from the combobox using the following code:
Private Sub Command14_Click()
If Me.FormSelection = "General_Cal" Then
strForm = "frmCalibrationGeneral"
ElseIf Me.FormSelection = "Caliper_6in" Then
strForm = "frmCalibrationCaliper6in"
ElseIf Me.FormSelection = "Micrometer_1in" Then
strForm = "frmCalibrationMicrometer1in"
ElseIf Me.FormSelection = "Universal_Cal" Then
strForm = "frmCalibrationUniversal"
ElseIf Me.FormSelection = "ForceGage_50Lbs" Then
strForm = "frmCalibrationForceGage50Lbs"
ElseIf Me.FormSelection = "Go_NoGo" Then
strForm = "frmCalibrationGoNoGo"
End If
DoCmd.OpenForm strForm
End Sub
While the code works and opens the correct form, the ID# has to be selected again in the combobox on the form. Is there a way to open the form to the record chosen from the selection form?