473,396 Members | 2,033 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

copying a table into an external file?

I need to be able to place a copy of tables I create within vb and
access, and place them in another file as a sort of back up.

First I create a folder "created folder" in which to put the tables:

MkDir "C:\Documents and Settings\My Documents\created folder"

This works, so now I wish to put two tables (table1 and table1detail)
into this folder. One of these tables may contain hundreds of
thousands of records (possible but not usual). I can't seem to be able
to execute this. I have tried CopyFile, MoveFile, TransferSpreadsheet,
TransferTable. I am sure that this is very simple and I was probably
just missing a comma somewhere but I just can't see where I'm going
wrong.

Ideally the type to file I would like to save these tables as in their
copied form would be that with the most efficient storage but one that
would maintain all the data and structure properly. Some kind of .DBF
or even .XLS? I really would appreciate some words of wisdom on this
too!
Thank you so much for any responses!
Nov 13 '05 #1
2 1162
On 8 Oct 2004 06:35:45 -0700, mi********@hotmail.com (MissiMaths)
wrote:

How about making a copy of the MDB itself? Simple, and highly
recommended.

-Tom.

I need to be able to place a copy of tables I create within vb and
access, and place them in another file as a sort of back up.

First I create a folder "created folder" in which to put the tables:

MkDir "C:\Documents and Settings\My Documents\created folder"

This works, so now I wish to put two tables (table1 and table1detail)
into this folder. One of these tables may contain hundreds of
thousands of records (possible but not usual). I can't seem to be able
to execute this. I have tried CopyFile, MoveFile, TransferSpreadsheet,
TransferTable. I am sure that this is very simple and I was probably
just missing a comma somewhere but I just can't see where I'm going
wrong.

Ideally the type to file I would like to save these tables as in their
copied form would be that with the most efficient storage but one that
would maintain all the data and structure properly. Some kind of .DBF
or even .XLS? I really would appreciate some words of wisdom on this
too!
Thank you so much for any responses!


Nov 13 '05 #2
mi********@hotmail.com (MissiMaths) wrote in
news:75**************************@posting.google.c om:
I need to be able to place a copy of tables I create within vb and
access, and place them in another file as a sort of back up.

First I create a folder "created folder" in which to put the tables:

MkDir "C:\Documents and Settings\My Documents\created folder"

This works, so now I wish to put two tables (table1 and table1detail)
into this folder. One of these tables may contain hundreds of
thousands of records (possible but not usual). I can't seem to be able
to execute this. I have tried CopyFile, MoveFile, TransferSpreadsheet,
TransferTable. I am sure that this is very simple and I was probably
just missing a comma somewhere but I just can't see where I'm going
wrong.

Ideally the type to file I would like to save these tables as in their
copied form would be that with the most efficient storage but one that
would maintain all the data and structure properly. Some kind of .DBF
or even .XLS? I really would appreciate some words of wisdom on this
too!
Thank you so much for any responses!


If you are running an mdb or adp application try running this code:

SaveAsText 6, "", FileName

where FileName is the name (and path) of the file to which you would like
your tables saved.

Nov 13 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Erohsik | last post by:
I am using external tables to load data from the data file. But the log files are getting created in the datafile's directory (because of CREATE OR REPLACE DIRECTORY ...) But I want those log...
1
by: Kevin Myers | last post by:
Hello, I'm an experienced application developer in some languages (including various SQL dialects), but have very little experience with MS Access or VBA, and am having trouble figuring out how...
3
by: itm | last post by:
I have to copy a FE/BE Access 2002 database on a regular basis to a CD to take to another site to use at that site. The data does not have to be up to the minute at that site. Is there a simple...
3
by: Daz | last post by:
Hi everyone! This is my first time posting in this group, although I have been watching it for the past few months and have to say this is possibly the best group I have seen on Google so far!...
0
by: aniendow | last post by:
Hi All, I am trying to upload a TAB delimited file into a database table. Considering the performance issue I thought EXTERNAL TABLE is my best option but with one problem, My table has CLOB...
4
by: ray well | last post by:
i need to copy in code a table from a legacy dbase III file into an access mdb file. both source and destination tables have the same table names, field names, field types, & field sizes. the...
0
debasisdas
by: debasisdas | last post by:
This thread contains some useful tips for using External tables. USING EXTERNAL TABLE ======================= 1.THE TABLE POINTS TO EXTERNAL FILE. IF DATA IS ALTERED IN THE EXTERNAL FILE,DATA...
3
by: tundal45 | last post by:
Hey Guys, I am trying to automate the process of loading data in our oracle server. As a part of that process, I am working on a perl script that loads external tables from data files. What I am...
2
by: troy_lee | last post by:
What is the best way of copying all the records from a linked table into a replica table that is local on my computer? This is for development work at home where I can not access the main table. Is...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.