Help in getting Address or PO Box in Address Directory

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
 
J

Jeff Boyce

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
 
J

John W. Vinson

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.
 
J

Jeff Boyce

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

Top