Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Access Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
access tricky thing
chrisg 

14 years ago
i have one form. there is one field (named: price) which takes his value from a lookup field with 3 columns. Actually into this field i wrote: [items].column(2) Now, i want this value from this field (price) to fill his price into a table(named:customerItems) where is a column(field) named price. Like:
[FORM:CustomerItems, FIELD:PRICE] GoAndFill-> [TABLE:CustomerItems, FIELD:PRICE] How can I do it???...


Reply from Richard Rost:

You just want to take whatever value is selected in the combo box and place it into a table? The EASIEST way to do this is with an UPDATE query. In the AfterUpdate event for your combo box (or you can make it a command button) just say:

DoCmd.OpenQuery "MyUpdateQuery"

That will launch the query. Now in the Update Query, make it so that it sets this value referring to Forms!YourFormName!FieldName.Column(2) for the value to change. If you want to ADD this value to the table as a new record, just use an APPEND query instead of an update query.

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Access Forum.
 

Next Unseen

 
New Feature: Comment Live View
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 5/17/2026 2:51:07 AM. PLT: 1s