Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   Index   Templates   Seminars   TechHelp   Forums   Help   Contact   Join   Order   Logon  
 
Home > TechHelp > Directory > Access > Split Database < Nested Subforms | Update Query >
Back to Split Your Database    Comments List
Upload Images   Link   Email  
VBA not working after splitting database
Yamile Borroto 
    
2 months ago
I split my database and now the logon is not working nor the vba codes. I try to click on my buttons to auto fill my pdf's and they do not work (distributed file)
Sami Shamma 
             
2 months ago
Please be more specific. See Rule #2.
What does not work? do you get an error? please give more details so we can help.
Kevin Robertson 
           
2 months ago
Yamile Borroto OP 
    
2 months ago
Sami, I click on the button and nothing happens, it is suppose to fill in my pdf form with my customer information. It was working on the original database before i split it.  It stills works on the original, it just does not do anything when you click on the button to fill my pdf form on the distributed file.
Yamile Borroto OP 
    
2 months ago
Kevin, I will try that. Thank you
Sami Shamma 
             
2 months ago
Please show the code of that button.
Yamile Borroto OP 
    
2 months ago
Sami, please see below
Private Sub WorkAuthBtn_Click()

    Dim X As Long
    
    FollowHyperlink "S:\SWR\Forms\WAuth.pdf"
    
    Sleep 1000 ' wait for PDF to load
    
    ' send 1 TAB keys
        For X = 1 To 1
            SendKeys "{TAB}", True
        Sleep 200
    Next
    
    'fill in fields
    SendKeys First_Name & " " & Last_Name & "            " & "{TAB}", True
    SendKeys Appt_Date & "{TAB}", True
    SendKeys (Address) & "    " & "{TAB}", True
    SendKeys (Insurance_Comp) & "{TAB}"
            
End Sub
Yamile Borroto OP 
    
2 months ago
this one as well
Private Sub CertofCompBtn_Click()
    
    DoCmd.OpenForm "CertificateofCompletionF", acViewNormal, , "ID=" & ID
    
End Sub
Richard Rost 
            
2 months ago
Run down the Troubleshooter.
Kevin Robertson 
           
2 months ago
Did you rename the Button after writing your code?
Right Click the Button and choose Build Event and make sure the code is there.

Is the code attached to the Button?
Open the Property Sheet for the Button  and go to the Events tab.
The Click event for the Button should say Event Procedure. If it isn't click the Builder Button (...) to reattach the code.
Yamile Borroto OP 
    
2 months ago
Got it to work.  I unsplit it and split it again. now its working.  Thanks guys.

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Split Your Database.
 

 
 
 

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 2025 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 1/23/2025 12:34:00 PM. PLT: 1s