Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 40
Default Question on Deleting Querytables

Hello all,

I have been looking for the answer to the question on how to delete the
querytables permanently, and I have not had any luck. I hope someone has the
answer to my question. Please see below for detail information.

From the projects that I work on, I connect an Excel file to an Access
database to retrieve data. For the connection, I do not use code, instead I
connect them through Data Import External Data New Database Query. Part
of the connection setup, I give a querytable name and check the box "Save
query definition" in the External Data Range Properties. If I want to delete
the querytable that I created, I uncheck the Save Query Definition box on the
properties and delete the define name of that querytable. After I uncheck
and delete the define name of that querytable, when I recreate a new
querytable using the same querytable name that I just deleted, I would not
able to use it. I receive an error message that the name is already exist on
that sheet.

I thought I deleted, and why would the querytable name still exist? Is
there a way to delete the querytables permanently so that when I want to use
the same name again, I would be able to use it?

Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,124
Default Question on Deleting Querytables

After you go thru your "delete" procedure go back and check to make sure you
clicked OK to make the change. Why delete and re-create when you can just
refresh???
If desired, send your file to my address below. I will only look if:
1. You send a copy of this message on an inserted sheet
2. You give me the newsgroup and the subject line
3. You send a clear explanation of what you want
4. You send before/after examples and expected results.


--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Souny" wrote in message
...
Hello all,

I have been looking for the answer to the question on how to delete the
querytables permanently, and I have not had any luck. I hope someone has
the
answer to my question. Please see below for detail information.

From the projects that I work on, I connect an Excel file to an Access
database to retrieve data. For the connection, I do not use code, instead
I
connect them through Data Import External Data New Database Query.
Part
of the connection setup, I give a querytable name and check the box "Save
query definition" in the External Data Range Properties. If I want to
delete
the querytable that I created, I uncheck the Save Query Definition box on
the
properties and delete the define name of that querytable. After I uncheck
and delete the define name of that querytable, when I recreate a new
querytable using the same querytable name that I just deleted, I would not
able to use it. I receive an error message that the name is already exist
on
that sheet.

I thought I deleted, and why would the querytable name still exist? Is
there a way to delete the querytables permanently so that when I want to
use
the same name again, I would be able to use it?

Thanks.


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 40
Default Question on Deleting Querytables

Don,

Thanks for your response.

I don't know what you mean by "check to make sure you clicked OK to make the
change". Could you tell me more?

In addition, the delete procedure that you are referring to is it deleting
define name of the querytable and removing check from the Save Query
Definition box from the Properties?

The reason that I want to delete the querytable and recreate a new one with
the same name is sometime, I use the wrong query from Access database for
querytable and I have to change it, but I want to keep the same querytable
name. I have tried to change the query within the querytable window, and I
couldn't.

Thanks again.

"Don Guillett" wrote:

After you go thru your "delete" procedure go back and check to make sure you
clicked OK to make the change. Why delete and re-create when you can just
refresh???
If desired, send your file to my address below. I will only look if:
1. You send a copy of this message on an inserted sheet
2. You give me the newsgroup and the subject line
3. You send a clear explanation of what you want
4. You send before/after examples and expected results.


--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Souny" wrote in message
...
Hello all,

I have been looking for the answer to the question on how to delete the
querytables permanently, and I have not had any luck. I hope someone has
the
answer to my question. Please see below for detail information.

From the projects that I work on, I connect an Excel file to an Access
database to retrieve data. For the connection, I do not use code, instead
I
connect them through Data Import External Data New Database Query.
Part
of the connection setup, I give a querytable name and check the box "Save
query definition" in the External Data Range Properties. If I want to
delete
the querytable that I created, I uncheck the Save Query Definition box on
the
properties and delete the define name of that querytable. After I uncheck
and delete the define name of that querytable, when I recreate a new
querytable using the same querytable name that I just deleted, I would not
able to use it. I receive an error message that the name is already exist
on
that sheet.

I thought I deleted, and why would the querytable name still exist? Is
there a way to delete the querytables permanently so that when I want to
use
the same name again, I would be able to use it?

Thanks.



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 40
Default Question on Deleting Querytables

Don,

I don't know you have a chance to read my reply to your message. Could you
help me how to delete the querytables permanently so that I can use the same
querytable names in the same worksheet and workbook?

I just remember why I need to re-use the same querytable names. The real
problem is somehow, I lose the connection(s) between Excel and Access from
time to time. When I lose the connection(s), I have to recreate the
connection(s)/querytable(s), and I have to reuse the same querytable names
because there are VB codes and formula for the workbook use those querytable
names. So I either reuse the querytable names or make changes to the codes
and formula. Since I do not know how to delete the querytable names
permanently, I have been making changes to the codes and formula, and it is
pain in the neck when you have to make a lot of those changes.

That's why, I need help with how to delete them permanently so that I can
reuse them.

Thanks.

"Don Guillett" wrote:

After you go thru your "delete" procedure go back and check to make sure you
clicked OK to make the change. Why delete and re-create when you can just
refresh???
If desired, send your file to my address below. I will only look if:
1. You send a copy of this message on an inserted sheet
2. You give me the newsgroup and the subject line
3. You send a clear explanation of what you want
4. You send before/after examples and expected results.


--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Souny" wrote in message
...
Hello all,

I have been looking for the answer to the question on how to delete the
querytables permanently, and I have not had any luck. I hope someone has
the
answer to my question. Please see below for detail information.

From the projects that I work on, I connect an Excel file to an Access
database to retrieve data. For the connection, I do not use code, instead
I
connect them through Data Import External Data New Database Query.
Part
of the connection setup, I give a querytable name and check the box "Save
query definition" in the External Data Range Properties. If I want to
delete
the querytable that I created, I uncheck the Save Query Definition box on
the
properties and delete the define name of that querytable. After I uncheck
and delete the define name of that querytable, when I recreate a new
querytable using the same querytable name that I just deleted, I would not
able to use it. I receive an error message that the name is already exist
on
that sheet.

I thought I deleted, and why would the querytable name still exist? Is
there a way to delete the querytables permanently so that when I want to
use
the same name again, I would be able to use it?

Thanks.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel Question....Deleting Numbers In a Set Jac Excel Worksheet Functions 3 August 19th 08 07:50 PM
Deleting a row - followup question carrera Excel Discussion (Misc queries) 3 April 10th 08 10:18 PM
querytables.add question Gary Keramidas Excel Programming 0 May 28th 07 04:02 AM
Question about deleting rows and formulas [email protected] Excel Discussion (Misc queries) 14 February 11th 06 11:53 PM
Newbie VBA Question; Deleting minimum value row Paul Edwards Excel Programming 2 April 18th 04 09:19 AM


All times are GMT +1. The time now is 04:10 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"