×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-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!

*Tek-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

Connecting to Lotus approach with VBA/SQL

Connecting to Lotus approach with VBA/SQL

Connecting to Lotus approach with VBA/SQL

(OP)
Here's a good question for y'all...
Let's say that I've got a Lotus approach database file on my pc, and I want to access data using Microsoft excel's VBA with SQL. I know just enought about SQL to manipulate data in an Access DB, but can it be done with Approach as well? Is SQL really a STANDARDIZED Query Language?

Also, if it CAN be done, what would the connection string look like? I know that with Access it's:
-----------------------------------------------------
dbsource = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source='c:\somefilepath\mydatabase.mdb'"
-----------------------------------------------------

but with Approach what would it be?

dbsource = "???????????????????????????????;Data Source='c:\somefilepath\mydatabase.apr'"



Thanks for any help!
AT

RE: Connecting to Lotus approach with VBA/SQL

You could probably connect to the individual dBase database files using SQL and ODBC, but there is no way to connect to the APR file. The APR file does not contain any data - that is where the forms, reports, etc are stored.

Sue Sloan
http://www.xpertss.com

RE: Connecting to Lotus approach with VBA/SQL

(OP)
Ok, I hear you there.... now as far as the connection string...

Since it's not going to hit a .mdb file, could I still use the
----------------------
dbsource = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source='c:\somefilepath\mydatabase.dbf'"
----------------------
connection string, or would it have to be different. I believe the extension on the file you're talking about is .dbf, correct? What provider would handle that sort of connection, and what would the connection string look like?


Thanks a TON!
AT

RE: Connecting to Lotus approach with VBA/SQL

(OP)
Any more takers on this Q?

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 Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

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

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

Close Box

Join Tek-Tips® Today!

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

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close