Solved

import and export

Posted on 1998-12-24
3
139 Views
Last Modified: 2010-05-03
Is there an easy way to import and export datas in different formats in VB? exemples please. I mean from an Access database I acceed in VB to a text file or,  best to a file that of the user's choice (like Access export does...)
0
Comment
Question by:phenix
3 Comments
 
LVL 3

Expert Comment

by:vmano
ID: 1452372
from where and where to????

vmano
0
 

Author Comment

by:phenix
ID: 1452373
Edited text of question
0
 
LVL 1

Accepted Solution

by:
Renato102098 earned 50 total points
ID: 1452374
Yes it is very easy.
The follow example is it very simple way to do
This is only show, not exact code
1) You need open source data (access, dbase, textfile, etc..) you can use ADOdc1
2) You can create new database (access, dbase, textfile, etc..)
  2 a ) You can create this base automatic (read information of field, type of field from the source data or create this it manual
3) Open the new database with ADOdc2
4) You can fill new database from source database
While not adodc1.recorset.eof
    adodc2.recorset(n) = adodc1.recorset(n)
    ......
    ......
    adodc1.recorset.movenext
wend

0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question