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 
Strange Behavior Button Form
Teeka Leone 
     
5 years ago
1. I have a checkbox on a form that when checked besides writing true also opens another form. Perfect so far.  I can't figure out how to get the second form to open with the related record loaded even though custID on form 1 = custID on form 2. I know I've done it with a button. So I added a button with with wizard BUT if I click on CustID on left form and CustID on the right form in the wizard window and click the <--> button, A different field, "DESCRIPTION" shows in the button config field and in the macro. I've tried it 1/2 dozen times.  If I change it in the macro to form 1 custid = form 2 custid. it doesn't work at all.  Have no idea what is wrong.
Richard Rost  @Reply  
          
5 years ago
I really hate macros. With a passion. This could be done very easily with VBA:

DoCmd.OpenForm "Form2NameF",,,"CustID=" & CustID
Teeka Leone OP  @Reply  
     
5 years ago
I finally got it working.  Gremlins!
Teeka Leone OP  @Reply  
     
5 years ago
Thank you Richard!  I couldn't get it workin as a VBA event because the Syntax gets me every time!  Your way is MUCH cleaner. Replacing all of my button macros!  Yippee
Richard Rost  @Reply  
          
5 years ago
Glad to help

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:55:09 PM. PLT: 3s