Welcome to dbFreaks.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Run-time error '3027': "Cannot update. Database or object ..

 
   Database Help (Home) -> Visual Basic -> DAO RSS
Next:  How to export an table to dbase with index  
Author Message
Utf-8BSmFzb24

External


Since: Feb 03, 2004
Posts: 7



(Msg. 1) Posted: Tue Feb 03, 2004 5:11 am
Post subject: Run-time error '3027': "Cannot update. Database or object is
Archived from groups: microsoft>public>vb>database>dao (more info?)

I have a program using VB6. It was working fine on Win98. Now I try to run the program on WinXP but failed.

The source code is list as below:

.
.
.
FileCopy "d:\test\acct.dat", "d:\test\temp.dat"

Set dbsText = OpenDatabase("d:\test", False, False, "TEXT;")
Set rstText = dbsText.OpenRecordset("temp.dat")
.
.
.
There is Run-time error '3027': "Cannot update. Database or object is read-only." when run the 3nd line "Set rstText = dbsText.OpenRecordset("temp.dat")".

Any idea?

Thanks,

 >> Stay informed about: Run-time error '3027': "Cannot update. Database or object .. 
Back to top
Login to vote
Douglas J. Steele

External


Since: Mar 14, 2004
Posts: 1626



(Msg. 2) Posted: Tue Feb 03, 2004 10:02 pm
Post subject: Re: Run-time error '3027': "Cannot update. Database or objec [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

You must have be using a more up-to-date version of Jet now. In one of the
service packs associated with Access 97, Access got more restrictive in
terms of what file extensions it would accept for text files.

Try

FileCopy "d:\test\acct.dat", "d:\test\temp.txt"

Set dbsText = OpenDatabase("d:\test", False, False, "TEXT;")
Set rstText = dbsText.OpenRecordset("temp.txt")

and see whether it works.

You can also check the following KB articles:
<a style='text-decoration: underline;' href="http://support.microsoft.com/?id=247861" target="_blank">http://support.microsoft.com/?id=247861</a>
<a style='text-decoration: underline;' href="http://support.microsoft.com/?id=245407" target="_blank">http://support.microsoft.com/?id=245407</a>
<a style='text-decoration: underline;' href="http://support.microsoft.com/?id=306144" target="_blank">http://support.microsoft.com/?id=306144</a>



--
Doug Steele, Microsoft Access MVP
<a style='text-decoration: underline;' href="http://I.Am/DougSteele" target="_blank">http://I.Am/DougSteele</a>
(No private e-mails, please)



"Jason" <anonymous RemoveThis @discussions.microsoft.com> wrote in message
news:1BF43053-EBFC-4A27-BA43-8B7B7904EC9A@microsoft.com...
 > I have a program using VB6. It was working fine on Win98. Now I try to run
the program on WinXP but failed.
 >
 > The source code is list as below:
 >
 > .
 > .
 > .
 > FileCopy "d:\test\acct.dat", "d:\test\temp.dat"
 >
 > Set dbsText = OpenDatabase("d:\test", False, False, "TEXT;")
 > Set rstText = dbsText.OpenRecordset("temp.dat")
 > .
 > .
 > .
 > There is Run-time error '3027': "Cannot update. Database or object is
read-only." when run the 3nd line "Set rstText =
dbsText.OpenRecordset("temp.dat")".
 >
 > Any idea?
 >
 > Thanks,
 ><!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Run-time error '3027': "Cannot update. Database or object .. 
Back to top
Login to vote
Utf-8BSmFzb24

External


Since: Feb 03, 2004
Posts: 7



(Msg. 3) Posted: Tue Feb 03, 2004 10:02 pm
Post subject: Re: Run-time error '3027': "Cannot update. Database or objec [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

It work after I add ".dat" extension by modify the windows registry.

Thanks a lot!
 >> Stay informed about: Run-time error '3027': "Cannot update. Database or object .. 
Back to top
Login to vote
Unicorn

External


Since: Nov 14, 2003
Posts: 98



(Msg. 4) Posted: Thu Feb 05, 2004 11:28 pm
Post subject: Re: Run-time error '3027': "Cannot update. Database or objec [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Where is the registry Key Jason......


"Jason" <anonymous.RemoveThis@discussions.microsoft.com> wrote in message
news:BB47F609-E7D5-4B60-A24E-1F1ABF9FC5F4@microsoft.com...
 > It work after I add ".dat" extension by modify the windows registry.
 >
 > Thanks a lot!<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Run-time error '3027': "Cannot update. Database or object .. 
Back to top
Login to vote
Douglas J. Steele

External


Since: Mar 14, 2004
Posts: 1626



(Msg. 5) Posted: Thu Feb 05, 2004 11:28 pm
Post subject: Re: Run-time error '3027': "Cannot update. Database or objec [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

It's detailed in the KB articles I posted:

<a style='text-decoration: underline;' href="http://support.microsoft.com/?id=247861" target="_blank">http://support.microsoft.com/?id=247861</a>
<a style='text-decoration: underline;' href="http://support.microsoft.com/?id=245407" target="_blank">http://support.microsoft.com/?id=245407</a>
<a style='text-decoration: underline;' href="http://support.microsoft.com/?id=306144" target="_blank">http://support.microsoft.com/?id=306144</a>


--
Doug Steele, Microsoft Access MVP
<a style='text-decoration: underline;' href="http://I.Am/DougSteele" target="_blank">http://I.Am/DougSteele</a>
(No private e-mails, please)



"Unicorn" <unicorn RemoveThis @somewhere.com> wrote in message
news:OVsvmq86DHA.1852@TK2MSFTNGP10.phx.gbl...
 > Where is the registry Key Jason......
 >
 >
 > "Jason" <anonymous RemoveThis @discussions.microsoft.com> wrote in message
 > news:BB47F609-E7D5-4B60-A24E-1F1ABF9FC5F4@microsoft.com...
  > > It work after I add ".dat" extension by modify the windows registry.
  > >
  > > Thanks a lot!
 >
 ><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Run-time error '3027': "Cannot update. Database or object .. 
Back to top
Login to vote
Display posts from previous:   
   Database Help (Home) -> Visual Basic -> DAO All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]