×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Access 2002 to Access 97 conversion in VB6

Access 2002 to Access 97 conversion in VB6

Access 2002 to Access 97 conversion in VB6

(OP)
Hello!

Certain program generates a database in Access 2002 format, but Visual Basic 6 only can recognice Access 97 format. (as I know)
Can anyone tell me if there is a code to transform the database without using sendkeys?

Thanks a lot.

RE: Access 2002 to Access 97 conversion in VB6

Hi,

VB6 has several data access technologies.  DAO is the oldest of these.  DAO cannot recognize MSAccess formats beyond Access97.  But there is another technology called ADO that can recognize Access2000.  I'm not sure about Access2002, but possibly it can handle that also.  If you make an ODBC data source out of your Access file, than you can work with any version of Access from VB6.

Best regards.

Yeasir Rahul
Principal,
VoltSmith Technologies
Industrial Control and Automation

Email: rahul@voltsmith.com
Web  : www.voltsmith.com

RE: Access 2002 to Access 97 conversion in VB6

(OP)
cowski, It does not work. :(

RE: Access 2002 to Access 97 conversion in VB6

You should not be having any problems using the ADO objects to read and write to an A2K database.

Can you post the code that you're using?  And please indicate which ADO references you've included in the VB project.

RE: Access 2002 to Access 97 conversion in VB6

(OP)
In my form, I have a Data control called "Data1" with this properties:
Connect: Access
Default type: 2 Use jet

 ----------------------------
' An extract of the code is
     Data1.DatabaseName = "Here is the name"
     Data1.RecordsetType = 0
     Data1.RecordSource = "Coordinate Systems"
' here are some other lines
' and then the code follows
     data1.refresh
' and rise the next error

     ERROR 3343. The format of the database is not recognized.

RE: Access 2002 to Access 97 conversion in VB6

You are using DAO based data control.  Use ADO based control ADODC instead.  That will recognize Access2000 and derivatives alright.

From Project->Components menu select "Microsoft ADO Data Control 6.0" and the ADODC control will be added in your toolbox window.

Regards

Yeasir Rahul

Principal, VoltSmith Technologies
www.voltsmith.com

RE: Access 2002 to Access 97 conversion in VB6

(OP)
The use of Ado sounds good, but the name of the database change on each execution of the program, because its name is the date and the time when the programs starts.
So, the use of ADO its a little bit difficult in thids case.

Help?

RE: Access 2002 to Access 97 conversion in VB6

You can set the connection string property of the ADODC control programmatically

Good Luck
johnwm

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members! Already a Member? Login


Resources

Low-Volume Rapid Injection Molding With 3D Printed Molds
Learn methods and guidelines for using stereolithography (SLA) 3D printed molds in the injection molding process to lower costs and lead time. Discover how this hybrid manufacturing process enables on-demand mold fabrication to quickly produce small batches of thermoplastic parts. Download Now
Design for Additive Manufacturing (DfAM)
Examine how the principles of DfAM upend many of the long-standing rules around manufacturability - allowing engineers and designers to place a part’s function at the center of their design considerations. Download Now
Taking Control of Engineering Documents
This ebook covers tips for creating and managing workflows, security best practices and protection of intellectual property, Cloud vs. on-premise software solutions, CAD file management, compliance, and more. Download Now

Close Box

Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close