alternate text if blank record

P

Piers

Hi folks,

I'm producing registers for events. Report includes company name and delegate name.

Some (actually most!) of the time, we don't have the delegate name, and we need it to produce paperwork at the end of the course. I want to produce a small label to ask them to fill in the blank name space.

I'd like to have a label the same size as the name field, which is visible if the name field is blank. If there's a name, don't see the reminder.

I can do my if's, but can't work this one out? I bet it's something simple!

Thanks in advance,

Piers
 
F

fredg

Piers said:
Hi folks,

I'm producing registers for events. Report includes company name and delegate name.

Some (actually most!) of the time, we don't have the delegate name, and
we need it to produce paperwork at the end of the course. I want to
produce a small label to ask them to fill in the blank name space.

I'd like to have a label the same size as the name field, which is
visible if the name field is blank. If there's a name, don't see the
reminder.

I can do my if's, but can't work this one out? I bet it's something simple!

Thanks in advance,

Piers

Piers,
You wish to do this on a report, not on a form?

In the report, instead of using the control [DelegateName], use and
unbound control.

Set it's control source to:
=Nz([DelegateName],"Get the guys name!!")

If you wish you can also use IIF().

=IIf(IsNull([DelegateName],"Get the guys name!!",[DelegateName])
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top