G
Guest
Hi all,
I am trying to get away with not creating a duplicate of my form. I would
like to use an "If" statement to determine which form is open, then change
the "Customer" (fSelectUtility) based on the selection in the combo box and
pass that back to the correct form (stDocName):
Dim stDocName As String
Dim stLinkCriteria As String
If Not "fCuts" Then
stDocName = "fCutsArchive"
Else
stDocName = "fCuts"
End If
stLinkCriteria = "tblUtilities.[KeyID]=" & Me![cboSelectUT].Column(0)
DoCmd.OpenForm stDocName, , , stLinkCriteria
DoCmd.Close acForm, "fSelectUtility"
Thanks,
Nick
I am trying to get away with not creating a duplicate of my form. I would
like to use an "If" statement to determine which form is open, then change
the "Customer" (fSelectUtility) based on the selection in the combo box and
pass that back to the correct form (stDocName):
Dim stDocName As String
Dim stLinkCriteria As String
If Not "fCuts" Then
stDocName = "fCutsArchive"
Else
stDocName = "fCuts"
End If
stLinkCriteria = "tblUtilities.[KeyID]=" & Me![cboSelectUT].Column(0)
DoCmd.OpenForm stDocName, , , stLinkCriteria
DoCmd.Close acForm, "fSelectUtility"
Thanks,
Nick