If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Other PC Databases > Access is messing with my dbf datatypes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-25-08, 15:50
SoilMapper SoilMapper is offline
Registered User
 
Join Date: Sep 2008
Posts: 3
Access is messing with my dbf datatypes

I need to export some MS Access tables to dbf so I can use some customized software. The other software requires a strict data structure for the dbf. What I did was import the structure from an existing dbf, add my data, and then export back to dbf.

Turns out that Access doesn't like to retain datatypes the same way that Visual FoxPro wants it. For instance, Access has a datatype called 'number' that has a field size 'double'. When I export a field like that to dbf and look at it wih VFP, it is a field of type 'number' with a width of 20 and a decimal of 5.

Does anyone have a magic solution to make sure that Access imports and exports while retaining the dbf table structure?
Reply With Quote
  #2 (permalink)  
Old 09-29-08, 15:28
jrbbldr jrbbldr is offline
Registered User
 
Join Date: Nov 2002
Posts: 49
Instead of doing Imports and Exports from within Access why don't you set up a VFP Remote View into your Access database - utilizing ODBC?

If you do it in that manner, the View will have data types compatible with VFP.

Then once the Access table is Open, you can move data across to VFP data tables as needed.

Good Luck
Reply With Quote
  #3 (permalink)  
Old 10-09-08, 17:34
SoilMapper SoilMapper is offline
Registered User
 
Join Date: Sep 2008
Posts: 3
You are assuming that I want to use VFP.

I want to do this from Access.

Any other suggestions?
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On