PC Review


Reply
Thread Tools Rate Thread

Delete Table from Excel

 
 
Boss Spearman
Guest
Posts: n/a
 
      15th Nov 2006
I'm trying to delete an access table from Excel.
When I try and delete the table using VBA this message appears:
"Cannot delete this index or table. It is either the current index or
is used in a relationship."
But there is no relationship with this table.
I can delete the table in access with no problem but I need to do it in
VBA.

I have tried to delete the tables by using these two methods.

strSQL = "DROP TABLE tblPrices;"
cnnX.Execute strSQL

vtSql = "DROP TABLE tblPrices"
cmd.CommandText = vtSql
cmd.Execute

Thanks

 
Reply With Quote
 
 
 
 
Peter Chatterton
Guest
Posts: n/a
 
      15th Nov 2006
I want to copy a Cell with all its properties except for the links, which
are causing problems.

Where would I find more information about this?

Thanks,
Peter


 
Reply With Quote
 
Peter Chatterton
Guest
Posts: n/a
 
      15th Nov 2006
Sorry, bad question.

My problem was that I was copying a Cell from another Sheet, and that Cell's
Formula referenced that Sheet without giving a Sheet name. So when I copied
it over it seemed to be referencing the current Sheet.

Peter.

"Peter Chatterton" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I want to copy a Cell with all its properties except for the links, which
>are causing problems.
>
> Where would I find more information about this?
>
> Thanks,
> Peter
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to delete records in a linked Excel table within Access? =?Utf-8?B?QW5keQ==?= Microsoft Access 4 16th Jun 2011 02:15 PM
Delete a Table Name in Excel 2007 Name Manager =?Utf-8?B?R29zLUM=?= Microsoft Excel Misc 0 14th Jan 2007 01:53 PM
Delete rows from Excel spread sheet While importing to table =?Utf-8?B?Qm9i?= Microsoft Access External Data 1 14th Jul 2006 03:20 PM
ODBC Oracle Table, Delete From Excel? nowon Microsoft Excel Programming 2 22nd Dec 2005 03:38 PM
How do you delete fields from a linked Excel table in access? =?Utf-8?B?RXhjZWwgbGlua2VkIHRhYmxl?= Microsoft Access 1 18th Mar 2005 07:11 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:08 PM.