Solved

import and export

Posted on 1998-12-24
3
142 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

695 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