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 
Customer Form
Lee Shastid 
    
7 months ago
I want to add a button on my product form to open the customer form so I can get the customer info. Which video can I watch (again) to show me how to do this?
Donald Blackwell  @Reply  
       
7 months ago
Open Form Shows how to
Lee Shastid OP  @Reply  
    
7 months ago
Thank you Donald. Let me tell you what I am trying to do. I may be explaining it wrong. I have a DB that is home inventory. I have a product form that has the description of the item on it. On that form I want to put a button to open up the vendor information where I purchased it from. Right now I may be doing something wrong. If I put the button on the form (to open the vendor form) no matter what product I am on it opens to the same vendor.
Donald Blackwell  @Reply  
       
7 months ago
In order to open to a specific Vendor, you need to ensure that the index key for that Vendor is accessible to the form, either in the recordset of the table or query.

So, as an example, if your product table contains the Vendor ID along with the product, you might have a button such as "OpenVendorBtn". In the on click event of that button, you might have code like:

DetailsPrivate Sub OpenVendorBtn_Click()

     docmd.openform "VendorF",,,"VendorID=" & VendorID

End Sub


This would open the form named VendorF to the record with a matching VendorID
Lee Shastid OP  @Reply  
    
7 months ago
So do I add a combo box on the product table showing the vendorID? Then use that field to show on the product form and create a button?
Lee Shastid OP  @Reply  
    
7 months ago
Donald Thank you. I figured it out by accident. But I figured it out.
Lee Shastid OP  @Reply  
    
7 months ago
Donald never mind. I hit something and deleted the box. I know how to do it but dont know how to get what helped me. I think it was somewhere in using a wizard you choose 2 fields and combine them and it worked with that. Dont know what that is called or where I found it.
Lee Shastid OP  @Reply  
    
7 months ago
End of this thread. I am done. Figured out what I was looking to make it happen. It the Button wizard instead of combo box wizard. PROBLEM SOLVED
Donald Blackwell  @Reply  
       
7 months ago
Lee, the Button Wizard will let you do that:

Add a button to your form
When the wizard opens, choose Form Operations
In the Actions list, choose Open Form and click Next
Choose the Form you want to open and click Next
Choose the option to Open the form and find specific data to display and click next
It will give you 2 list boxes, on the left, the fields in the form you added the button to
     In the right, the fields in the form you are opening
Select the field that matches in both (I.E. VendorID if that's your field) and Click Next
Choose either text or an icon on the next one and click next
Name your button and click finish
Lee Shastid OP  @Reply  
    
7 months ago
Thats how I solved it. Thank you for your patience and knowledge.
Donald Blackwell  @Reply  
       
7 months ago
Happy to help. Sorry I didn't think of the wizard first... I don't usually use them...

I started coding online the "hard way", digging into other people's code and trying to bend it to my will, lol. I used the wizards at first when I started with Access but then once I learned VBA, it just feels more natural to me, so some times I have to step back and remember to look at the built in tools.

Glad you got what you needed. Don't hesitate to ask if you find yourself in need of further assistance :)
Lee Shastid OP  @Reply  
    
7 months ago
Thank you. Have a great evening or night.

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 7:03:53 AM. PLT: 0s