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

Deleting a table - timing conflicts

I created a report to display all the tables/fields in a db, and all the
code is in the report's module - for easy one-chunk portability to other
apps. In the OnOpen, I create a temp table, fill it from the tabledefs
collection, then open the report. Works fine. In the OnClose, I want to
delete the table, but the report still has hold of it. I've tried a number
of ways to delay the delete (DoEvents, empty For loop, dummy MsgBox), but no
luck. I don't know what other event to hang this on. I was able to *empty*
the table onClose, but I really like to delete it for a clean exit. Ideas?

Thanks,

Armando
Aug 23 '06 #1
2 1100
Why not cheat and open a hidden form and then close it when the report
closes. Then you can clear the table when the hidden form closes.

Aug 23 '06 #2
I've thought along similar lines, but would really like it all to be in one
piece, just the report I can drop into any app and it's ready to go out of
the box. I forgot to mention I also tried changing the report's record
source to "" before deleting the table, but I'm not allowed to do that after
the report is open. Funny, I used to do that in the past - open a report,
THEN tell it what its record source is (same report reused from several
places) - not sure why I can't do that anymore.

Thanks! Armando

<pi********@hotmail.comwrote in message
news:11**********************@p79g2000cwp.googlegr oups.com...
Why not cheat and open a hidden form and then close it when the report
closes. Then you can clear the table when the hidden form closes.

Aug 23 '06 #3

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

Similar topics

0
by: Jacob Nielsen | last post by:
Hi, I've got two tables that control my menu on my site (which is coded in ASP). The first table (cam_menu) contains info about the sort order of the menu and the second about my content. To...
4
by: Ken Bass | last post by:
Hi all, I have a client that is obsessed (actually paranoid) with security. One requirement he has is that any data deleted from a database be physically removed. This means not only within the...
3
by: Nathan Bloom | last post by:
Hi, I have a data entry form (access 2000) that also allows the user to add, update, and delete records from the form. The Delete action is carried out in an event procedure and has the...
5
by: Robert Brown | last post by:
Hi All. I have a routine that checks a SQL Table for all records 3 months prior to a predetermined date, then I insert them into an Archive DB then delete those records from the original table....
46
by: DP | last post by:
hi, i've got a form, with a subform in it. i've got a delete button in the subform. the code i;ve got is; Private Sub cmdDeleteRecord_Click() msg = "Are you sure you want to delete this...
7
by: Lisa | last post by:
I have an Access 2000 application that uses the following function to re-link my tables when I switch from my Current back end to a Dummy back end. I also use it to refresh my links. Function...
1
by: Bjorn Sagbakken | last post by:
With ASP.NET 2.0: I have managed to create controls dynamically in an asp:table, populating them with database info, and even adding empty rows of controls for adding new data to the database....
11
by: shriil | last post by:
Hi I have this database that calculates and stores the incentive amount earned by employees of a particular department. Each record is entered by entering the Date, Shift (morn, eve, or night)...
4
by: sphinney | last post by:
I'm not exactly sure how to start this post. My question is pretty simple, but it will take a little bit of context before I can state it. (And thanks in advance for taking the time to read this!) ...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: 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...
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.