Welcome to dbFreaks.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

How to export an table to dbase with index

 
   Database Help (Home) -> Visual Basic -> DAO RSS
Next:  Database synchronization problem - URGENT!  
Author Message
towhwa

External


Since: Feb 03, 2004
Posts: 1



(Msg. 1) Posted: Tue Feb 03, 2004 2:49 pm
Post subject: How to export an table to dbase with index
Archived from groups: microsoft>public>vb>database>dao (more info?)

How can I COPY all data from rs to a Dbase IV database "newdb.dbf" with
index using VB ???

 >> Stay informed about: How to export an table to dbase with index 
Back to top
Login to vote
Paul Clement

External


Since: Sep 02, 2003
Posts: 236



(Msg. 2) Posted: Tue Feb 03, 2004 2:49 pm
Post subject: Re: How to export an table to dbase with index [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Tue, 3 Feb 2004 11:49:32 +0800, <towhwa RemoveThis @os-okamoto.com.sg> wrote:

¤ How can I COPY all data from rs to a Dbase IV database "newdb.dbf" with
¤ index using VB ???
¤

See if the following works for you:

Sub ExportTodBase()

Dim cnn As New ADODB.Connection
Dim sqlString As String

' Open the Connection
cnn.Open _
"Provider=Microsoft.Jet.OLEDB.4.0;" & "Data Source=D:\My Documents\db1.mdb;" & _
"Jet OLEDB:Engine Type=4"

sqlString = "SELECT * INTO [dBase IV;DATABASE=D:\My Documents\dBase].[dBase1] FROM [Table3]"
cnn.Execute sqlString

cnn.Close
Set cnn = Nothing

End Sub


Paul ~~~ pclement RemoveThis @ameritech.net
Microsoft MVP (Visual Basic)

 >> Stay informed about: How to export an table to dbase with index 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Copy a table from one MDB file to another? - Is there a relatively simple DAO (or SQL) statement that I can execute in my VB6 program that will copy a table (structure only - no data) from one MDB file to another MDB file?

Use DAO to add fields to existing Access table - How do I use DAO.36 code to add 3 fields to existing Access 2000 table Thanks in advance

DAO 3.6 record locking - Hi, Is it possible to programmatically lock a single record in a VB application using DAO 3.6? I would like to lock users' records when they log on to the app. Later I can check if a user's record is locked to see if they are logged in or not. (I....

Fixes for VB4 or DAO 3.0 - I've got VB4 (32-bit) and it seems to use DAO 3.0. Is there a service pack for either of these that I can use? I'm having issues with DAO and > 2GB of RAM on the machine, and don't want to have to move to a newer version of VB if I can help it, just t...

Jet error - I've just started getting this error message on a seemingly random basis. 'The Microsoft Jet database engine does not recognize 'CID' as a valid field name or expression.' CID is a text field, and it is a valid column name. The line of code that..
   Database Help (Home) -> Visual Basic -> DAO All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]