Solved

import and export

Posted on 1998-12-24
3
141 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

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

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

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…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

734 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