Update Field In Ms Access Using Lookup Table?
Tuesday, February 16th, 2010 at
11:33 pm
I have a table in MS Access has a customer field which uses a lookup table which is linked to the customers table. When a user selects the customer from the drop-down box, I want the address, telephone fields etc to automatically update with the data from the customer table.
How would I go about this?
Thanks
Possibly related posts: (automatically generated)
- Related posts on Access
- Microsoft Access Database Errors « From Classics to the New Age
- Microsoft Access 2000 | Allsellshop.com Shopping hot product ...
- What Are The Advantages Of Having Shell Access On A Hosting Server ...
- Related posts on Field
- Day 029/365 2.16.2010 – Abdul's Shawarma | Comments from Left Field
- Projecting the field of 65: A-10, Mountain West scooping up Pac ...
- New oil field in Mexico could help rescue industry | India News ...
- Related posts on Lookup
- Does Anyone Know Of An Actual Site That Gives Free Reverse Phone ...
- Lookup cell phone number! | Techobot
- Look Up Criminal Arrest Records Free | High Tech Gadgets
![]() |
Tagged with: Access • Field • Lookup • Table • Update • Using
Filed under: Telephone Table FAQ
Like this post? Subscribe to my RSS feed and get loads more!


US $19.99






As written your question asks to do something that is not normally done. Usually you do not update from the customer file, you leave the data there and just link it in with a query.
So, upon viewing or printing the data is ‘linked’ in.
If the customer data changes, the next time you view it or report it the changes will be seen, not the old data that you updated with your combobox question.
Maybe I’m misunderstanding your question.
Are you using a Form and you just want text fields populated from the combobox choice? If so, the ‘AfterUpdate’ event on the combo box can requery and poke data into the text fields.
OK,
add a textbox
in the afterupdate event of the combobox put
Me!textbox = Dlookup(“[columnname_of_customer_table]“…
“customertable”, “[customernumber] = ‘ & Me!comboboxname & ” ‘ “)
( the last six characters are ampersand space doublequote singlequote doublequote closebracket IF customer number is Text and remove both singlequotes IF the customer number is a Number, so the last six characters are changed to one character, just the closebracket
I think this will show you how one will work, you just need to do the rest.
Damn, this editor keeps changing the line
Me!textbox = Dlookup(“[columnname_of_customer_table]“…
it should end with columnname of customertable closingsquarebracket doublequote comma
John O is correct. If you have an “Orders” table, linked to “Customers” table, only the “Customers” table needs to contain the customer data – phone, address, name, etc. Those fields should exist in one table only. The only field(s) that should appear in more than one table are the linking field(s), in this case “Customer Number”
Your form, of course, will display the name,address, etc when the customer number is chosen, but to then copy that data into identical fields of the “Orders” table is not necessary. That kind of table/database design bloats your application and creates opportunities for data mismatch in the future. (What if someone opens the Orders table directly and changes the address? Now it won’t match the address kept in the Customers table – see what I mean?)
What you do is Share folders. Go to the PC and right click the folder you want to share (I Normally share Drive C: but if you don't have a sequrity key on the router its not recomened. right click on it the click "proerties" then the sharing tab on the display box. click the apporite bothen click ok.
Now go to the laptop then find My Network Places its usually in the Start menu and could be on the desktop. there you will see a folder lke this "K: on \PC" Where K is the folder and \PC is the name of the pc.
There are almost 1300 celebs in the fast-lookup directory. Thank you
very nice piece… but a lot of materials wasted
To make a unique conference room statement, and to create a pleasant ambiance, you can ensure that you have a creative décor to grasp the attention of others, especially your clients. Going farther from custom adaptations of boring conference tables, have you ever wondered about a Lego block conference room table? Sounds bizarre?..
This is a post from Walyou, who bring you the best New Gadgets gadgets, Cool Gadgets and Hi Tech News.
Lego Conference Room Table
Related posts:Lego Star Wars Foosball Table Lego Ceramic Set Must Be Handled With Care Lego Bricks Art Made of Lego Bricks
I love Sting!! This song gave me so much. Thank you
I thought by now you knew, that windows 7 is still beta and that you cannot use it as your prime OS. You can install it on a separate partition and use it for testing purposes.
In August Windows 7 will be deactivated completely.
As from next year windows 7 is available for official use.
Sjo you better continue usisng vista or windows as your OS.
if you had to know any information about any person you had to have a look for addresses, but with reverse cell phone lookup you just need to understand the person’s cell telephone number and you will have all the information you want. It is that simple!
First color touchscreen smartphone in 2002; first gesture-based smartphone in 2007; first 4G WiMAX smartphone in 2008… HTC have been laying their history out on the table, and it’s all designed to show Apple – and other industry observers – that they’re crowd leaders, not crowd followers. The company’s latest response to Apple’s patent legal threat has been to wheel out its record of innovation. It makes for reasonably impressive reading, too, especially to those people who forget that HTC acted as a whitebox OEM for various carrier partners before deciding to promote their own brand. The title of their statement – “HTC disagrees with Apple’s actions” – may be bordering on the unduly polite, but the underlying message from company CEO Peter Chou is still clear. ”[HTC] will fully defend itself … we will continue to embrace competition through our own innovation.” Don’t expect this battle to be over any time soon. [via Android Community] Press Release: HTC DISAGREES WITH APPLE’S ACTIONS…
#advice pickup lines never work, and if you so happen to get a girl by using a pickup line. I guarantee you she's a basic bitch
Way Funny! Easy Everyday Tutorial using only 2 eye shadows
http://simulacrum.dorm.duke.edu/tools/javadoc_lookup/
Reverse Phone Directory – Lookup Any Phone Number: We all receive irritating calls from telemarketers who try to
Destroying Educational Institutions Using Them for Military Purposes Is War Crime #Destroying #Educational #Institutions
Update: Stop Sugar Cravings And Lose Weight Naturally.