473,382 Members | 1,204 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,382 software developers and data experts.

Delete all objects from database other than tables

Using A2K. I need syntax to delete all objects from a database other
than tables, like with a FOR...LOOP construct. I researched the
newsgroup and found suggestions to look thru Access help on
collections and containers to find examples there. I honestly cannot
find what I need so I'm either not looking in the right place or it's
just not there.

Any help or advice would be appreciated.
Nov 13 '05 #1
3 1793
"Ellen Manning" <ma**********@hotmail.com> wrote in message
news:da*************************@posting.google.co m...
Using A2K. I need syntax to delete all objects from a database other
than tables, like with a FOR...LOOP construct. I researched the
newsgroup and found suggestions to look thru Access help on
collections and containers to find examples there. I honestly cannot
find what I need so I'm either not looking in the right place or it's
just not there.

Any help or advice would be appreciated.


I can't think of any reason you would need to do this repeatedly or as a
normal function within the app. If it is a one-time deal it would be
easier to create a new blank file and import only the tables into it. Is
it because you have several files you want to do this on?
--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com
Nov 13 '05 #2
ma**********@hotmail.com (Ellen Manning) wrote in message news:<da*************************@posting.google.c om>...
Using A2K. I need syntax to delete all objects from a database other
than tables, like with a FOR...LOOP construct. I researched the
newsgroup and found suggestions to look thru Access help on
collections and containers to find examples there. I honestly cannot
find what I need so I'm either not looking in the right place or it's
just not there.

Any help or advice would be appreciated.


Loop backwards through each container, deleting the objects. If to
try to go from 1 to Tabledefs.Count, you'll error out, because the
count will decrease as you delete objects.
Nov 13 '05 #3
Thank you, Pieter.

pi********@hotmail.com (Pieter Linden) wrote in message news:<bf**************************@posting.google. com>...
ma**********@hotmail.com (Ellen Manning) wrote in message news:<da*************************@posting.google.c om>...
Using A2K. I need syntax to delete all objects from a database other
than tables, like with a FOR...LOOP construct. I researched the
newsgroup and found suggestions to look thru Access help on
collections and containers to find examples there. I honestly cannot
find what I need so I'm either not looking in the right place or it's
just not there.

Any help or advice would be appreciated.


Loop backwards through each container, deleting the objects. If to
try to go from 1 to Tabledefs.Count, you'll error out, because the
count will decrease as you delete objects.

Nov 13 '05 #4

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

Similar topics

17
by: serge | last post by:
How can i delete all user stored procedures and all table triggers very fast in a single database? Thank you
16
by: Philip Boonzaaier | last post by:
I want to be able to generate SQL statements that will go through a list of data, effectively row by row, enquire on the database if this exists in the selected table- If it exists, then the colums...
10
by: D. Dante Lorenso | last post by:
I'd like to run a clean up command on my tables to eliminate rows that I'm no longer using in the database. I want to do something like this: DELETE FROM tablename WHERE...
16
by: robert | last post by:
been ruminating on the question (mostly in a 390/v7 context) of whether, and if so when, a row update becomes an insert/delete. i assume that there is a threshold on the number of columns of the...
3
by: Bob Darlington | last post by:
Using Access 2002. I have imported one form and two modules from another database, in order to compare code. Having finished the comparison, I cannot delete them. When I press 'Delete', I get a...
2
by: AP | last post by:
When developing, I have a production version that is being used by users, and as I develop, I periodically import the key data tables into my development version. There are about 4 tables and I...
6
by: polocar | last post by:
Hi, I'm writing a program in Visual C# 2005 Professional Edition. This program connects to a SQL Server 2005 database called "Generations" (in which there is only one table, called...
17
by: (PeteCresswell) | last post by:
I've got apps where you *really* wouldn't want to delete certain items by accident, but the users just have to have a "Delete" button. My current strategies: Plan A:...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.