?
Solved

import and export

Posted on 1998-12-24
3
Medium Priority
?
143 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 150 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…
Suggested Courses
Course of the Month8 days, 15 hours left to enroll

764 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