Microsoft Access Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsDatabaseMicrosoft Access Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old June 20th, 2008, 11:40 AM
yoslick11 yoslick11 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jun 2008
Posts: 2 yoslick11 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 7 m 14 sec
Reputation Power: 0
New user help

Hello, I am very new to the Access world, and my boss has assigned me a project. I need to figure out the correct expression to put in this property box. Currently I have 2 fields in a table named Vendor. The fields are named VendorName and Address. Now I have a form named Assets that have an option to Select the VendorName. I want the option under that for his address to automatically change when I select the vendor name. Sorry for the bad explaination, I am very new to this.

So far I have

=IIf((Vendors!VendorID)=(Assets!VendorID),Vendors! Address)

Reply With Quote
  #2  
Old June 20th, 2008, 12:35 PM
yoslick11 yoslick11 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jun 2008
Posts: 2 yoslick11 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 7 m 14 sec
Reputation Power: 0
Bump, Anyone? I'm sure im going in the wrong direction. I just need to make it to where when one text box changes the other one displays the address

Reply With Quote
  #3  
Old June 20th, 2008, 01:41 PM
don94403's Avatar
don94403 don94403 is online now
Contributing User
Click here for more information.
 
Join Date: Jan 2007
Location: Northern California
Posts: 2,474 don94403 User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)don94403 User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)don94403 User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)don94403 User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)don94403 User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)don94403 User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)don94403 User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)don94403 User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)don94403 User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)don94403 User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)don94403 User rank is Lieutenant Colonel (40000 - 50000 Reputation Level) 
Time spent in forums: 2 Weeks 4 Days 18 h 20 m 2 sec
Reputation Power: 501
Quote:
Originally Posted by yoslick11
Bump, Anyone? I'm sure im going in the wrong direction. I just need to make it to where when one text box changes the other one displays the address

We ask that you not bump a posting within 24 hours. That won't get you any more help and may irritate some of the people who are most qualified to help you.

Yes, you're going in the wrong direction. Access is a relational database system and you will need to understand what that means. First of all, your Vendor table needs many more fields than you have. It should look more like this:
Code:
tblVendors:
   vendorID      Autonumber
   vendorName    Text
   vendorAddr    Text
   vendorCity    Text
   vendorState   Text
   vendorZip     Text
   vendorPhone   Text


I assume that you're just beginning your project and haven't yet determined what's going into your Assets table. If so, you're starting on the wrong foot. Having taught database courses in college for more than ten years, I can assure you that you need to design all your tables before doing anything else. Then the design of your forms will be rather simple. Starting with one table and working on a form, when you haven't yet designed the other tables will result in re-doing your forms over and over again.

That said, with a vendor table structured as above, the way you can display on the form the data when you select one of the vendors depends on what else you're going to do with the form. Perhaps the most common way to go about it is to have a combobox on the form, with its Row Source being a Query with 2 columns, only the second of which is shown to the user. The first column would be the vendorID field, the second would be the vendorName field. Then the rest of the controls on the form would be bound to another Query whose Criteria would be the vendorID column of the combobox. In the onChange event of the combobox, you would Refresh the form, thus populating the form with data from that vendor record.

But the real question is, what would you do, once the vendor's data is displayed? You see, you can't design this form until you have designed the logic for the whole system.

This is not something that you're going to do in an hour, or a day, or as a beginner, in a week.
__________________
Experience is the thing you have left when everything else is gone.

Reply With Quote
  #4  
Old June 20th, 2008, 03:09 PM
sbenj69's Avatar
sbenj69 sbenj69 is offline
Redneck 'puter fell'r
ASP Free Intermediate (1500 - 1999 posts)
 
Join Date: Feb 2007
Location: Redneck part of Illinois
Posts: 1,722 sbenj69 User rank is General 7th Grade (Above 100000 Reputation Level)sbenj69 User rank is General 7th Grade (Above 100000 Reputation Level)sbenj69 User rank is General 7th Grade (Above 100000 Reputation Level)sbenj69 User rank is General 7th Grade (Above 100000 Reputation Level)sbenj69 User rank is General 7th Grade (Above 100000 Reputation Level)sbenj69 User rank is General 7th Grade (Above 100000 Reputation Level)sbenj69 User rank is General 7th Grade (Above 100000 Reputation Level)sbenj69 User rank is General 7th Grade (Above 100000 Reputation Level)sbenj69 User rank is General 7th Grade (Above 100000 Reputation Level)sbenj69 User rank is General 7th Grade (Above 100000 Reputation Level)sbenj69 User rank is General 7th Grade (Above 100000 Reputation Level)sbenj69 User rank is General 7th Grade (Above 100000 Reputation Level)sbenj69 User rank is General 7th Grade (Above 100000 Reputation Level)sbenj69 User rank is General 7th Grade (Above 100000 Reputation Level)sbenj69 User rank is General 7th Grade (Above 100000 Reputation Level)sbenj69 User rank is General 7th Grade (Above 100000 Reputation Level)  Folding Points: 305646 Folding Title: Super Ultimate Folder - Level 1Folding Points: 305646 Folding Title: Super Ultimate Folder - Level 1Folding Points: 305646 Folding Title: Super Ultimate Folder - Level 1Folding Points: 305646 Folding Title: Super Ultimate Folder - Level 1Folding Points: 305646 Folding Title: Super Ultimate Folder - Level 1Folding Points: 305646 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 3 Weeks 1 Day 13 h 17 m 38 sec
Reputation Power: 1460
You can check out this tutorial below:

Create a combo using the wizard and then find the record based on the value you've selected in combo

That should get you started
__________________
Did I help you? If so gimme rep by clicking on the scales at the top right corner of this post

Madness does not always howl. Sometimes, it is the quiet voice at the end of the day saying, "Hey, is there room in your head for one more?"

Last edited by sbenj69 : June 20th, 2008 at 03:46 PM.

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseMicrosoft Access Help > New user help


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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 On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump



 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT