Leave out Some Data

P

Phillip Schmidt

Hey All,

I have a table of contact information (name, address,
phone, email) and some people have opted to not have their
information listed, but I need to show their name. Is
thier a way that I can create a report, and not display
the text in certain fields (those of a private nature when
they have choses "Do Not Publish").

Thanks
 
M

Marshall Barton

Phillip said:
I have a table of contact information (name, address,
phone, email) and some people have opted to not have their
information listed, but I need to show their name. Is
thier a way that I can create a report, and not display
the text in certain fields (those of a private nature when
they have choses "Do Not Publish").


Here's one way. Create a query based on the contacts table.
For each ield that should not be printed, cange the field to
an expression along these lines:

ShowAddress: IIf(publishfield, address, Null)
 
M

Marshall Barton

Please keep the correspondence in the newsgroups. Private
consulting is reserved for paying clients.

If your field is True when the data should be hidden, then
reverse the values in the IIf:

IIf([NoPublish], Null, [Address])
 

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