Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Big Button Form 3    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
BigButton Form Code
Earl Sanders 
    
2 years ago
DetailsDim rs As Recordset, X As Long

    Set rs = CurrentDb.OpenRecordset(TempVars("ButtonRecordSource"))
    X = 1
    While Not rs.EOF
          
        Me.Controls("Button" & X).Caption = rs!ButtonCaption
      
        X = X + 1
        rs.MoveNext
    Wend
    rs.Close
    Set rs = Nothing


i have it down to the me.Controls part of the code as when i try to open it from the customer form i get a run time error that says (Microsoft Access cant find the field" Button1 referred to in your expreession.) Can someone tell me what im doing wrong i know its looping right as if i blockout the me.controls and msgbox rs it shows just fine Please i need help !!
Richard Rost  @Reply  
          
2 years ago
Did you name your buttons correctly? Make sure you have a "Button1" control.

Not just the caption... the actual NAME of the button.
Earl Sanders OP  @Reply  
    
2 years ago
Richard Thank you it was the Button1 i had a space between Button &1 i was pulling my hair out. Thanks Again
Richard Rost  @Reply  
          
2 years ago
That'll do it. 😁👍

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Big Button Form 3.
 

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: 6/22/2026 9:20:20 PM. PLT: 1s