Computing.Net > Forums > Office Software > MS Access lookup question

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

MS Access lookup question

Reply to Message Icon

Name: qweasdzxc
Date: June 22, 2005 at 05:57:37 Pacific
OS: win98se
CPU/Ram: 128
Comment:

Here is what I want to do. I will have 2 tables 1 customer details 2 orders

Customer table:
###############
CustomerID
First Name
Last Name
Address
TEL
FAX

Order:
######
OrderID
Product
Price
First name
Last Name

What I want to have the First Name field in the Order table to be a lookup. This works OK. The problem is i can’t get it to add the customer’s Last name to the order table.

How do i do this? Thanks



Sponsored Link
Ads by Google

Response Number 1
Name: mdow
Date: June 22, 2005 at 11:00:16 Pacific
Reply:

I would seriously advice against this. One problem with adding customer name to the orders table is that if you update the information in the customer table, you would also have to update the same changes to each instance in the order table. A better option would be to add the customerid field to the orders table.

If you insist on doing this, you would use the After Update event for one of the name controls (on your form) to update the other.
Use the dlookup function to look up the name.


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Office Software Forum Home


Sponsored links

Ads by Google


Results for: MS Access lookup question

MS access www.computing.net/answers/office/ms-access/3517.html

MS Access Question www.computing.net/answers/office/ms-access-question/5991.html

optimising MS Access files www.computing.net/answers/office/optimising-ms-access-files/1760.html