Show field if there is data in another

  • Thread starter hobbit2612 via AccessMonster.com
  • Start date
H

hobbit2612 via AccessMonster.com

Hi I wonder whether someone can help me a with a problem I have.

I have a report which contains tracked data changes. What I would like to do
is where for example the 'DateOfInvoiceChanged' field is populated with a
date, I would like the 'DateOfInvoice' i.e. the associated field to be
visible, but, I'm not quite sure where to start to be honest.

Could someone perhaps point me in the right direction please?

Many thanks

Chris
 
M

Marshall Barton

hobbit2612 said:
I have a report which contains tracked data changes. What I would like to do
is where for example the 'DateOfInvoiceChanged' field is populated with a
date, I would like the 'DateOfInvoice' i.e. the associated field to be
visible, but, I'm not quite sure where to start to be honest.


You can use the Format event procedure:
Me.DateOfInvoice.Visible = Not
IsNull(Me.DateOfInvoiceChanged)
(all on one line)

A less versatile, but maybe adequate in your case would be
to use an expression in the DateOfInvoice text box:
=IIf(DateOfInvoiceChanged Is Null, Null, DateOfInvoice)
 
H

hobbit2612 via AccessMonster.com

Marshall,

That's great. I used the second piece of coding and it works a treat!

Many thanks for your time and trouble

Regards

Chris
 

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