Computer Learning Zone CLZ Access Excel Word Windows

Be hungry for success, hungry to make your mark, hungry to be seen and to be heard and to have an effect. And as you move up and become successful, make sure also to be hungry for helping others.

-Arnold Schwarzenegger
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Visitor Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Transfer Database VBA
Pega Work 

3 years ago
I have a difficulty in using vba to export the dbase (in .dbf) file, which access can easily done by using right click table exports, but when i come across with vba transfer database command, i struggle with the [databases name]field and encounter an error and dont know how to debug, grateful if you could enlighten me for this
Scott Axton  @Reply  
        
3 years ago
Kevin Robertson  @Reply  
          
3 years ago
Also, please remember to tell us what the error message is that you are receiving and which line of code is highlighted when you click debug.

Screenshots really are a great help when trying to troubleshoot problems.
pega work OP  @Reply  

3 years ago
I wrote a command: (aim to export a dbf to a local file) however there are limited resources online about the transferdatabase in exporting the dbf file

DoCmd.TransferDatabase acExport, "dbase IV", "", acTable, "oip", "C:\Users\Pega\Downloads\oip.dbf", False, ""

it shows an error: 3001 invalid argument
Pls let me know if there is any of your course cover this topic, i have subscribed as a member but there isnt one related to this
mant thanks
Kevin Robertson  @Reply  
          
3 years ago
You have empty quotes that aren't needed. Try this:

DoCmd.TransferDatabase acExport, "dbase IV", , acTable, "oip", "C:\Users\Pega\Downloads\oip.dbf", False

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Visitor 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/7/2026 6:34:26 PM. PLT: 0s