Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

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

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

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...it was ingeniously designed and all those clicks were for my own good... and that was even before I got my speedy and useful answer to my tekkie question that I eventually posted..."

Geography

Where in the world do Tek-Tips members come from?
jezky82 (MIS)
8 Jul 12 2:06
I have a problem with foxpro 2.6, I have acces the data I need to change through foxpro 2.6. how to import the data mdb to dbf or how do I process the data through foxpro asses. and how to use mdb to foxpro commands such as append, repleace, DELE or other orders please thanks for helping out a full reply
danfreeman (Programmer)
8 Jul 12 13:32
If you need to convert MDB data to a DBF:

http://bit.ly/LH7Gig

If you need to directly update MDB data still inside an MDB, you'll either need the FPW "connectivity kit" which exposes any ODBC data source to FPW or you'll need to learn the long-deprecated DDE commands available to FPW.
jezky82 (MIS)
8 Jul 12 15:24
thanks for the help, but I do not know how to integrate mdb to dbf program in foxpro 2.6, is there a command or its syntax can I enter in the command line in foxpro prg. please help
danfreeman (Programmer)
8 Jul 12 15:47
Foxpro 2.6 **CANNOT** natively manipulate data stored in Access MDB files. Full stop.

You can either:

* Export MDB data to a dbf (I've shown you a google search for tools to do this)
* Export MDB data to a dbf using Access itself
* (this begs the question why not do the work in Access anyway?)
* Use ODBC to get a remote connection to the Access data

You will NOT be able to use FoxPro commands to manipulate Access data. Even if you get an ODBC connection, you can only send SQL commands to Access to manipulate the data.

Is this clearer?
jezky82 (MIS)
9 Jul 12 0:10
sorry, can you give examples of command convert mdb to foxpro dbf in the sample command or by using the dos prompt. and can help me sample command mdb sql for data manipulation. thank you
jrbbldr (Programmer)
9 Jul 12 11:32
can you give examples of command convert mdb to foxpro dbf

As Dan has explained above you CANNOT simple 'convert' MDB to DBF unless you want to use some 3rd party tool like dbConvert ( http://dbconvert.com/convert-access-to-foxpro-pro.... )

Again, as Dan has explained above, you can use the Foxpro language to Insert/Edit/Delete/View data from directly within an Access MDB database by using one of the methods he has listed.

I guess that I am not 100% clear on whether:
1. You want to COMPLETELY convert an Access MDB database and its data tables into the Foxpro DBF format.
2. Or do you want your Foxpro application to use and/or manipulate data from within the Access Database?

If the former, I'd suggest using either the Access Export utility (As Dan Has Suggested) or one of the 3rd party 'conversion' tools.

If the later, then I'd recommend that you use ODBC to 'connect' your Foxpro application to the Access data.
A Google search for: foxpro odbc access mdb will give you some more detailed advice on this.

Good Luck,
JRB-Bldr


danfreeman (Programmer)
9 Jul 12 11:33
That depends on the converter program you are using. Which one of the many shown in the Google search above have you selected?

What you are asking is like requesting driving directions without saying where you're going.
r0gerc (Programmer)
9 Jul 12 11:37
If you search the internet for "MDB to DBF" (as danfreeman has already shown you) you will find a number of tools to help you to convert a .mdb file. There are no foxpro commands to do it. I don't think you can do it without something that 'understands' JET databases.
jezky82 (MIS)
9 Jul 12 11:58
I have a program that generates the data mdb at any time. but I want to create a new program for processing such data. and the processing program will be used by the operator. I want to be easy to use, I will install the converter in my foxpro program. so when the operator needs to call the data mdb he lived through foxpro converter menu. and then the data is processed by a foxpro.
jezky82 (MIS)
9 Jul 12 12:39
how to use mdb to dbf command in dos prompt, please help me ....
jezky82 (MIS)
9 Jul 12 12:43
I use a program white town wizard ,how do i use it in dos prompt ...
Helpful Member!  danfreeman (Programmer)
9 Jul 12 13:15
Have you bothered with the vendor's documentation?

White Town's command line reference is here: http://www.whitetown.com/mdb2dbf/cl/
Helpful Member!  jrbbldr (Programmer)
9 Jul 12 14:51
how to use mdb to dbf command in dos prompt

There are NO single FP commands that can do this.

I want to create a new program for processing such data.

If so, then I'd recommend a couple of issues:
1. I would not use a 3rd party data 'conversion' program if you want to process Access data on a regular basis. It would be good for a one-time conversion, but not to run frequently - data may get over-written and/or changed.
2. Write your own data processing application in a more current version of Foxpro - VFP9 instead of the OLD, OLD non-Visual Foxpro
3. Use ODBC to get 'real-time' access to the M$ Access data.

Good Luck,
JRB-Bldr


jezky82 (MIS)
9 Jul 12 22:23
how to use mdb odbc to access data in FoxPro 2.6 for windows?
how to setting?
and how to manipulate data in foxpro mdb after using odbc?
thank you
jrbbldr (Programmer)
10 Jul 12 11:34
Did you read my #2 recommendation above?

If you do not already have a Foxpro application which needs to be modified to now incorporate this utility - great.
Write it in VFP9.

If you DO already have a FP application, I'd recommend first converting it to VFP9 and then add in this new utility.

Once you do that you merely establish a Connection from your VFP9 application to the 'remote' data in the M$ Access data tables.

That can be done in a number of ways
1. Use workstation defined DSN ODBC 'connection' and SQL-Pass Thru commands
2. Use DSN-less 'connection' and SQL-Pass Thru commands
3. Use VFP Remote View

Good Luck,
JRB-Bldr


Helpful Member!  OlafDoschke (Programmer)
5 Aug 12 11:27
The others have tried to tell you several times, this is not just a single file conversion, you can do without any interaction and further information. MDB is a database with many tables, views (queries) and even code, not only data.

Quotes from http://www.whitetown.com/mdb2dbf/cl/:

CODE

/BATCH ... Batch mode. The program does not ask any questions (if possible). 
The "if possible" hints this isn't the normal case.

I suggest you rather download the shell and do your conversion interactivley via the UI: http://www.whitetown.com/dbf-converters/

Bye, Olaf.

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!

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