Wrox Programmer Forums
|
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 24th, 2008, 11:51 AM
Registered User
 
Join Date: Mar 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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
 
Old March 25th, 2008, 06:42 AM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

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





Similar Threads
Thread Thread Starter Forum Replies Last Post
iif function rohit_sant SQL Server 2000 11 December 24th, 2009 04:04 AM
IIf umeshtheone Beginning VB 6 3 June 21st, 2007 12:24 AM
Nested IIF rohit_ghosh Access 5 May 4th, 2007 09:29 AM
Help with IIF Statment Corey Access 2 December 14th, 2006 11:10 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.