JeffBarker
Registered User.
- Local time
- Today, 20:26
- Joined
- Dec 7, 2010
- Messages
- 130
Hi Jeff,
Here are my 2 cents.
Your question would have been easy: the codes would have looked like
Code:If Nz(Me.subform!Email1) = "" Then TextBox = "Not chased yet" Else If Nz(Me.subform!Email2) = "" Then TextBox = "Last Chased: " & Me.subform!Email1 Else If Nz(Me.subform!Email3) ="" Then TextBox = "Last Chased: " & Me.subform!Email2 Else If Nz(Me.subform!Broadcast) ="" then TextBox = "Last Chased: " & Me.subform!Email3 Else TextBox = "Broadcast: " & Me.subform!Broadcast End If End If End If End If
Until you mentioned that this sub form is CONTINUOUS!
Now, where is this unbound textbox? If it is also on the sub form (did you say this is hidden?), you can write a very long IIF statement in the control source of Textbox using the above logic, i.e.,
Enter in the control source of the textbox
= IIF(Nz([Email1])="","Not chased yet",
IIF(Nz([Email2])="", "Last Chased: " & [Email1],
IIF(Nz([Email3])="", "Last Chased: " & [Email2],
IIF(Nz([Broadcast])="", "Last Chased: " & [Email3],
"Broadcast: " & [Broadcast]
))))
I hope I understood your question correctly, but if not, will try again.
Good luck.
Shoji
Hey Shoji,
Thanks for the suggestion - it's on the right track, but I have a couple of examples I am working on where we have a date in [Broadcast] and[Email1], [Email2] and [Email3] are empty, but the text box with your code above is showing "Not chased yet".