473,473 Members | 2,147 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

getting rid of a dodgy query

For some reason i have this dodgy query in my database: ~sq_fM-WEB-SUB

It does not do anything, but I can NOT

- open it
- delete it
- rename it
etc... because according to access, I do not have permission to do so.

Does anyone know a trick to get rid of this nuisance?
Nov 13 '05 #1
5 1146
"WindAndWaves" <ac****@ngaru.com> wrote in message news:<0d********************@news.xtra.co.nz>...
For some reason i have this dodgy query in my database: ~sq_fM-WEB-SUB

It does not do anything, but I can NOT

- open it
- delete it
- rename it
etc... because according to access, I do not have permission to do so.

Does anyone know a trick to get rid of this nuisance?


I thought the ~sq queries were internal. Are you showing hidden
objects or something? I guess you could import everything else into a
new db...
Nov 13 '05 #2
Hi Pieter

Yes, this is the theory, but for some reason this query has shown up and now
it will not leave.

I don't want to import them all to a new database, because I have so many
objects that this takes several hours (believe it or not).

Would there be some kind of trick I could use to delete the bugger?
"Pieter Linden" <pi********@hotmail.com> wrote in message
news:bf**************************@posting.google.c om...
"WindAndWaves" <ac****@ngaru.com> wrote in message

news:<0d********************@news.xtra.co.nz>...
For some reason i have this dodgy query in my database: ~sq_fM-WEB-SUB

It does not do anything, but I can NOT

- open it
- delete it
- rename it
etc... because according to access, I do not have permission to do so.

Does anyone know a trick to get rid of this nuisance?


I thought the ~sq queries were internal. Are you showing hidden
objects or something? I guess you could import everything else into a
new db...

Nov 13 '05 #3
"WindAndWaves" <ac****@ngaru.com> wrote in message news:<gl********************@news.xtra.co.nz>...
Hi Pieter

Yes, this is the theory, but for some reason this query has shown up and now
it will not leave.

I don't want to import them all to a new database, because I have so many
objects that this takes several hours (believe it or not).

Would there be some kind of trick I could use to delete the bugger?


You're not going to like this, but I *think* (yes, I've been known to
do that on rare occasions!) it's not letting you delete it because
it's a rowsource for a control on one of your forms. Which one and
how to find it, I have no idea. If I remember right, anytime you
build a query in the rowsource of an object, Access makes one of these
funky queries with the weird name and won't let you delete it. You
might need something like SpeedFerret to figure out what's using it,
delete that control and recreate it on the form it's on. (Yeah,
that's the easy part... finding it is the problem!)

Hope this helps some. Anyone else feel free to jump in and tell me
I'm just completely full of bollocks. (But explain what's going on!)

Pieter
Nov 13 '05 #4
You are correct, Pieter.

When you use SQL for the RecordSource of a Form, Access is "smart" enough to
know that it is something that will be relatively frequently used so it
creates an internal "saved query" to optimize retrieval. Deleting that
Access-generated query could (1) slow performance, or (2) be to no avail,
because Access may regenerate it for the same reason that it generated it in
the first place.

It really isn't a good idea to go about, willy-nilly, for people to go about
deleting anything they don't understand. Some of them might, if deleted,
make their database useless. I remember when we had a rash of
inquiries/complaints from people who were very upset that they couldn't
delete "all those tables whose names began with MSys". Fortunately, Access
will not allow you to delete the system tables that are vital to the
operation of the database.

Larry Linson
Microsoft Access MVP

"Pieter Linden" <pi********@hotmail.com> wrote in message
news:bf**************************@posting.google.c om...
"WindAndWaves" <ac****@ngaru.com> wrote in message

news:<gl********************@news.xtra.co.nz>...
Hi Pieter

Yes, this is the theory, but for some reason this query has shown up and now it will not leave.

I don't want to import them all to a new database, because I have so many objects that this takes several hours (believe it or not).

Would there be some kind of trick I could use to delete the bugger?


You're not going to like this, but I *think* (yes, I've been known to
do that on rare occasions!) it's not letting you delete it because
it's a rowsource for a control on one of your forms. Which one and
how to find it, I have no idea. If I remember right, anytime you
build a query in the rowsource of an object, Access makes one of these
funky queries with the weird name and won't let you delete it. You
might need something like SpeedFerret to figure out what's using it,
delete that control and recreate it on the form it's on. (Yeah,
that's the easy part... finding it is the problem!)

Hope this helps some. Anyone else feel free to jump in and tell me
I'm just completely full of bollocks. (But explain what's going on!)

Pieter

Nov 13 '05 #5
Hi Guys

Yes, thank you for the comments. I am pretty sure it is an accidentally
left behind kind of query. Because there is only one of them and I has been
forever. I will look into it.

Thank you

Nicolaas
"Larry Linson" <bo*****@localhost.not> wrote in message
news:J5wYc.3561$UI6.110@trnddc08...
You are correct, Pieter.

When you use SQL for the RecordSource of a Form, Access is "smart" enough to know that it is something that will be relatively frequently used so it
creates an internal "saved query" to optimize retrieval. Deleting that
Access-generated query could (1) slow performance, or (2) be to no avail,
because Access may regenerate it for the same reason that it generated it in the first place.

It really isn't a good idea to go about, willy-nilly, for people to go about deleting anything they don't understand. Some of them might, if deleted,
make their database useless. I remember when we had a rash of
inquiries/complaints from people who were very upset that they couldn't
delete "all those tables whose names began with MSys". Fortunately, Access
will not allow you to delete the system tables that are vital to the
operation of the database.

Larry Linson
Microsoft Access MVP

"Pieter Linden" <pi********@hotmail.com> wrote in message
news:bf**************************@posting.google.c om...
"WindAndWaves" <ac****@ngaru.com> wrote in message news:<gl********************@news.xtra.co.nz>...
Hi Pieter

Yes, this is the theory, but for some reason this query has shown up
and now it will not leave.

I don't want to import them all to a new database, because I have so many objects that this takes several hours (believe it or not).

Would there be some kind of trick I could use to delete the bugger?


You're not going to like this, but I *think* (yes, I've been known to
do that on rare occasions!) it's not letting you delete it because
it's a rowsource for a control on one of your forms. Which one and
how to find it, I have no idea. If I remember right, anytime you
build a query in the rowsource of an object, Access makes one of these
funky queries with the weird name and won't let you delete it. You
might need something like SpeedFerret to figure out what's using it,
delete that control and recreate it on the form it's on. (Yeah,
that's the easy part... finding it is the problem!)

Hope this helps some. Anyone else feel free to jump in and tell me
I'm just completely full of bollocks. (But explain what's going on!)

Pieter


Nov 13 '05 #6

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

Similar topics

303
by: mike420 | last post by:
In the context of LATEX, some Pythonista asked what the big successes of Lisp were. I think there were at least three *big* successes. a. orbitz.com web site uses Lisp for algorithms, etc. b....
80
by: Bibby | last post by:
Hi, I'm interested in getting started in the programming world. I've dabbled in C, C++ and VB6. Which would be the best language to focus my attention to regarding the following considerations: ...
8
by: Duncan Winn | last post by:
I am new to VC++7. I am using a method GetPrivateProfileString that requires an LPTSTR. I have defined this as a: char * data_name; I am then trying to convert this to an LPOLESTR and I...
8
by: Tomás | last post by:
This won't compile for me, it's saying "wcslen" isn't defined in the "std" namespace: #include <cwchar> int main() { std::wcslen("monkey"); }
2
by: voidtwerp | last post by:
Hi, showing my extreme ignorance I would like comments how the char arrays are used here, ie are these valid or dangerous uses (the reason I ask is because constructs like these occur in some...
3
by: simon | last post by:
Hi I have a SQL query that counts values in a table and totals them up and works out a percentage, it involves a few counts, is there a better why to acheive what I want other than the way I...
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
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...
1
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...
1
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...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.