Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Auto delete query.......

Status
Not open for further replies.

3682763

Technical User
Mar 10, 2003
1
0
0
US
How do i make autodelete query... helmi@ikhlas.com
 
What exactly is an 'autodelete' query?
[pipe]
Daniel Vlas
Systems Consultant
 
You can create and then delete query defs using VBA.

example:

Dim db As DAO.Database
Dim qDef As DAO.QueryDef

set db = currentdb()

Create the query:

Set qDef = db.CreateQueryDef ("TempQuery", "Use SQL to define query here")

Use query however you want to and then delete it:

db.QueryDefs.Delete "TempQuery"

 
I would just use a delete query and have it run on a certain forms close event or the click of a button. much easier than VBA. Never ever, bloody anything, ever
 
What am I missing? I still don't have a clue what an 'AutoDelete' query is...
Can anyone enlighten me here?
Is it a query that deletes itself [upsidedown]?

LOL

i have a feeling that the poster has found the answer...

[pipe]
Daniel Vlas
Systems Consultant
 
Can i have clear definition of autodelete query? I am intrigued by the xplanation...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top