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 
Data Load
Mohammad Masood 
  
5 years ago
Hi Mr. Richard
I am gold member of your channel and i have a query. In a real world we don't show all the records on the form or list. for eg. i want to load a record of customer in the header of the form where all the header fields are unbound. I want to search the data from the customer table and load in the header fields which are unbound. In the details sub-form which is also unbound i want to search the products and load the products from product table and and all the header and sub-form data i want to save it into another table, like transaction or history table, and i want to use this table or query for reports to know my daily, monthly and yearly sales.
Please advise how to achieve this in unbound fields
thanks and best regards,
Mohammad Masood
Richard Rost  @Reply  
          
5 years ago
There's a lot to unpack in that paragraph. Let's break it down and start with ONE thing at a time. What are you trying to accomplish first?
Mohammad Masood OP  @Reply  
  
5 years ago
Hi there, First thing i want to search the data from one form and load it into unbound controls in the another form
Adam Schwanz  @Reply  
           
5 years ago
There are a number of ways you could do this, I'm going to use DLOOKUP.

So let's say you search the field in SearchF, your other form is UnboundF for this example, and you are searching by the SerialNumber which is the unique primary key in the table. Then you want to send over the Serial Number, a Product Number, and a Description.

Depending what kind of search you have will change how you dlookup values below. For my example, I'm going to assume that I'm searching by the SerialNumber so I will have it, if you're using a listbox or some other search you will need to make adjustments.

DoCmd.OpenForm "UnboundF"
Forms!UnboundF!UnboundSerialNumber = SerialNumber
Forms!UnboundF!UnboundProductNumber = DLOOKUP("ProductNumber","ProductT","SerialNumber=" & SerialNumber)
Forms!UnboundF!UnboundDescription = DLOOKUP("Description","ProductT","SerialNumber=" & SerialNumber)
Adam Schwanz  @Reply  
           
5 years ago
Listbox Search you could use = SearchList.Column() and appropriate numbers

You could also use a recordset
Richard Rost  @Reply  
          
5 years ago
There are a lot of ways to do it, including what Adam said. You'll definitely need an event to trigger loading the data. See AfterUpdate.

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/6/2026 4:33:22 AM. PLT: 0s