G
Guest
I have a continous sub-form in my db to display a list of projects. I also
have a command button next to the record so that users can view the details
for that record. The problem is that I need to display a different form based
on a couple of fields in the record. ex: If ConditionA=True, Then display
Form A. If CondiitonB=True, then display FormB, If ConditionA=True and
ConditionB=True, then Display FormAB, else display FormC. Assistance is
greatly appreciated. The code I have to this point is:
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "frmFormC"
stLinkCriteria = "[MEA_Name]=" & "'" & Me![MEA_Name] & "'"
DoCmd.OpenForm stDocName, , , stLinkCriteria
have a command button next to the record so that users can view the details
for that record. The problem is that I need to display a different form based
on a couple of fields in the record. ex: If ConditionA=True, Then display
Form A. If CondiitonB=True, then display FormB, If ConditionA=True and
ConditionB=True, then Display FormAB, else display FormC. Assistance is
greatly appreciated. The code I have to this point is:
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "frmFormC"
stLinkCriteria = "[MEA_Name]=" & "'" & Me![MEA_Name] & "'"
DoCmd.OpenForm stDocName, , , stLinkCriteria