Solved

import and export

Posted on 1998-12-24
3
136 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
Comment Utility
from where and where to????

vmano
0
 

Author Comment

by:phenix
Comment Utility
Edited text of question
0
 
LVL 1

Accepted Solution

by:
Renato102098 earned 50 total points
Comment Utility
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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

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…
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…

771 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now