J
Jerry Anderson
The following code is automatically generated by the "open Form" command
button. Is there a way to modify the code so that an additional parameter
[CostCenter] can be used in conjunction with the variable [EventName]?
If ActualProjected.Value = "Projected" Then
stDocName = "ProjectedEventDetails"
stLinkCriteria = "[EventName]=" & "'" & Me![SelectEvent] & "'"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Else
stDocName = "ActualEventDetails"
stLinkCriteria = "[EventName]=" & "'" & Me![SelectEvent] & "'"
Me.Visible = False
DoCmd.OpenForm stDocName, , , stLinkCriteria
End If
button. Is there a way to modify the code so that an additional parameter
[CostCenter] can be used in conjunction with the variable [EventName]?
If ActualProjected.Value = "Projected" Then
stDocName = "ProjectedEventDetails"
stLinkCriteria = "[EventName]=" & "'" & Me![SelectEvent] & "'"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Else
stDocName = "ActualEventDetails"
stLinkCriteria = "[EventName]=" & "'" & Me![SelectEvent] & "'"
Me.Visible = False
DoCmd.OpenForm stDocName, , , stLinkCriteria
End If