Exforsys

Online Training

Importing dBASE into Access using VB.

This is a discussion on Importing dBASE into Access using VB. within the Microsoft .NET forums, part of the Programming Talk category; I'm trying to import Myfile.dbf into Access so that I can add any new records from Myfile.dbf ...


Go Back   Exforsys > Programming Talk > Microsoft .NET

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-27-2006, 10:57 AM
Junior Member
 
Join Date: Jan 2006
Posts: 3
Superfreak3 is on a distinguished road
Red face Importing dBASE into Access using VB.

I'm trying to import Myfile.dbf into Access so that I can add any new records from Myfile.dbf to an existing Access table. I also want to be able to remove any existing records from the existing table that are no longer contained in Myfile .dbf.

I'm having alittle trouble getting started and I'm fairly new to programming.

Any points in the right direction would be GREATLY appreciated.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-27-2006, 12:30 PM
admin's Avatar
Administrator
 
Join Date: Mar 2005
Location: New York, USA
Posts: 309
admin has disabled reputation
Send a message via Yahoo to admin
try this program if this one export to csv file, then use import option in Access..

http://www.freedownloadmanager.org/d...port_dbf_info/

hope this helps...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-27-2006, 03:22 PM
Junior Member
 
Join Date: Jan 2006
Posts: 3
Superfreak3 is on a distinguished road
I'm looking to do it in vb code.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-27-2006, 11:24 PM
admin's Avatar
Administrator
 
Join Date: Mar 2005
Location: New York, USA
Posts: 309
admin has disabled reputation
Send a message via Yahoo to admin
try this.... you need put some code around

Adodc2.ConnectionString = "Provider=MSDASQL.1;Persist Security Info=False;Data Source=dBASE Files;Initial Catalog=C:\MYDBFILEFOLDER"

Adodc2.RecordSource = "SELECT * FROM Myfile.dbf"
Adodc2.Refresh

OR

Provider=Microsoft.Jet.OLEDB.4.0;Data Source=[Path To database];Extended Properties=DBASE IV;

Change the [Path To database] above to where the dbf files reside. For example, C:\MYDBFILEFOLDER
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools

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 On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 01:00 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2004 - 2007 Exforsys Inc. All rights reserved.