p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   Access (http://p2p.wrox.com/forumdisplay.php?f=18)
-   -   Problems with IIF (http://p2p.wrox.com/showthread.php?t=66853)

thork1 March 24th, 2008 11:51 AM

Problems with IIF
 
I am having problems with getting this to work..

I have a database which allows orders to be taken.
A check box can be checked and the delivery address will be the same as the invoicing address. I used this formula:
=IIf([Delivery address same as invoicing]=Yes,[Invoicing Address 2])
however, when its not the same, i still need to type an address in.
Anyone got any ideas?

Thanks
Katherine

mmcdonal March 25th, 2008 06:42 AM

I'm not sure what you are after here. Normally you would create a customer table, then either have a billing address and a mailing address in that table, or more commonly, an address table with a look up to the customer table, and some field that tells you whether the address is for billing or for shipping, or both.

What is the table structure you are using?

On your data entry form, when the check box is checked, you can have it disable the controls for a seperate shipping address.

mmcdonal

Look it up at: http://wrox.books24x7.com


All times are GMT -4. The time now is 01:18 PM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.