Help in getting Address or PO Box in Address Directory

  • Thread starter Thread starter W. Guy Delaney
  • Start date Start date
W

W. Guy Delaney

I am trying to figure of how to write an llf statement that will insert tht
PO Box number into the Address Line of my Telephone Directory if the Street
Address is blank.

Can anyone write that statement for me?

Guy
 
Guy

That would really depend on how your table is structured.

If the table is reasonably well-normalized, your IIF() statement might look
something like (untested):

IIF(Len([AddressLine]>1,[POBox],[AddressLine])

Good luck!

Regards

Jeff Boyce
Microsoft Office/Access MVP
 
I am trying to figure of how to write an llf statement that will insert tht
PO Box number into the Address Line of my Telephone Directory if the Street
Address is blank.

Can anyone write that statement for me?

Guy

NZ([Street Address], [PO Box])

should work, if I understand your table structure correctly.
 
John

Now that's ... 'elegant'!

Jeff B.

John W. Vinson said:
I am trying to figure of how to write an llf statement that will insert
tht
PO Box number into the Address Line of my Telephone Directory if the
Street
Address is blank.

Can anyone write that statement for me?

Guy

NZ([Street Address], [PO Box])

should work, if I understand your table structure correctly.
 

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

Back
Top