A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Auto Fill Form fields based on another field's value using a IIF



 
 
Thread Tools Display Modes
  #1  
Old February 27th, 2010, 06:44 PM posted to microsoft.public.access.forms
JohnW
external usenet poster
 
Posts: 107
Default Auto Fill Form fields based on another field's value using a IIF

Hello once again...I'm back

I am trying to have the value for our Zipcode field to automatically be
added based on what city we select from our combo box for cities.

Zipcode field = Zipcode
City combobox field = lucity

I have tried using the IIF statement IIf([lucity]=Belton,[Zipcode]=29627,0)
placed in the properties of the Zipcode field in the form but it doesn't
work. I have about 12 cities to do this with.

Any suggestions? Thanks
--
JCW
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 11:26 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.