A
Afrosheen via AccessMonster.com
Thanks for your time.
I have two case statements where both are equal to the same. The Work Plans
and the Late Work Plans are the same. I've tried using this but it didn't
work: Case "Work Plans" or "Late Work Plans". I also tried: Case "Work
Plans", "Late Work Plans" and that didn't work. I know that there must be a
way of doing this.
Select Case flg
Case "Work Plans"
If head1 = "True" Then
Me.txtRep.ControlSource = "=[lname] & "", "" & [fname] & "" -- "" &
[WorkPlan] & "" -- "" & [Location]"
Else
Me.txtRep.ControlSource = "=[lname] & "", "" & [fname] & "" ---- "" &
[WorkPlan]"
End If
Case "Late Work Plans"
If head1 = "True" Then
Me.txtRep.ControlSource = "=[lname] & "", "" & [fname] & "" -- "" &
[WorkPlan] & "" -- "" & [Location]"
Else
Me.txtRep.ControlSource = "=[lname] & "", "" & [fname] & "" ---- "" &
[WorkPlan]"
End If
end select
Thanks for your help and reply.
I have two case statements where both are equal to the same. The Work Plans
and the Late Work Plans are the same. I've tried using this but it didn't
work: Case "Work Plans" or "Late Work Plans". I also tried: Case "Work
Plans", "Late Work Plans" and that didn't work. I know that there must be a
way of doing this.
Select Case flg
Case "Work Plans"
If head1 = "True" Then
Me.txtRep.ControlSource = "=[lname] & "", "" & [fname] & "" -- "" &
[WorkPlan] & "" -- "" & [Location]"
Else
Me.txtRep.ControlSource = "=[lname] & "", "" & [fname] & "" ---- "" &
[WorkPlan]"
End If
Case "Late Work Plans"
If head1 = "True" Then
Me.txtRep.ControlSource = "=[lname] & "", "" & [fname] & "" -- "" &
[WorkPlan] & "" -- "" & [Location]"
Else
Me.txtRep.ControlSource = "=[lname] & "", "" & [fname] & "" ---- "" &
[WorkPlan]"
End If
end select
Thanks for your help and reply.