PC Review


Reply
Thread Tools Rate Thread

Cannot update Database or object is read-only

 
 
=?Utf-8?B?bmVi?=
Guest
Posts: n/a
 
      17th Oct 2006
What's wrong with this code:

INSERT INTO [Excel 8.0;Database="C:\Documents and
Settings\Administrator\Desktop\test.xls"].Report SELECT * FROM count_preb;

any help will be much appreciated.

//neb
 
Reply With Quote
 
 
 
 
Jamie Collins
Guest
Posts: n/a
 
      17th Oct 2006

neb wrote:
> What's wrong with this code:
>
> INSERT INTO [Excel 8.0;Database="C:\Documents and
> Settings\Administrator\Desktop\test.xls"].Report SELECT * FROM count_preb;
>
> any help will be much appreciated.


Try removing the quotes and appending a semicolon separator to the
filename e.g.

INSERT INTO [Excel 8.0;Database=C:\Documents and
Settings\Administrator\Desktop\test.xls;].Report SELECT * FROM
count_preb;

Even better would be to supply column names (SELECT * is not for
production code) e.g.

INSERT INTO [Excel 8.0;HDR=Yes;Database=C:\Documents and
Settings\Administrator\Desktop\test.xls;].Report (xlcol1, xlcol2,
xlcol3)
SELECT col1, col2, col3
FROM count_preb;

Jamie.

--

 
Reply With Quote
 
Allen Browne
Guest
Posts: n/a
 
      17th Oct 2006
Your question has already been answered somewhere else that you posted the
same thing.

Please do not fragment the responses by posting the same question multiple
times in multiple groups.


 
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
Cannot update. Database or object is read-only Opal Microsoft Access Form Coding 9 5th Nov 2007 12:35 AM
cannot update. Database or object is read-only =?Utf-8?B?U2FuZHk=?= Microsoft Access Form Coding 1 24th Jul 2005 04:01 PM
Can't update. Database or object is read only Reiner Harmgardt Microsoft Access 1 9th Mar 2005 10:43 AM
Cant Update: Database or Object Is Read Only =?Utf-8?B?Um9zcw==?= Microsoft Access VBA Modules 1 10th Dec 2004 01:44 AM
can't update, database or object is read only Ron Microsoft Access External Data 1 12th Jul 2003 06:41 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:53 PM.