Connecting Tech Pros Worldwide Help | Site Map

Can't Update an Updatable Recordset

 
LinkBack Thread Tools Search this Thread
  #1  
Old November 12th, 2005, 09:04 PM
Bob Darlington
Guest
 
Posts: n/a
Default Can't Update an Updatable Recordset

I am using code (simplified for this post) to generate a recordset to which
I want to add a record.

Set rs = db.Openrecordset("SELECT * FROM qVariations WHERE ......")
ws.Begintrans
If rs.Updatable then
rs.AddNew
rs!LAN = vLAN
rs.Update
etc

The fifth line generates Error 3027 (Cannot Update. Database or Object is
read only).
The query (qVariations) can be manually edited.
I am using A2002.
I would have thought that the Updatable test would identify any problems.
Any help appreciated.

--
Bob Darlington
Brisbane



  #2  
Old November 12th, 2005, 09:04 PM
Bob Darlington
Guest
 
Posts: n/a
Default Re: Can't Update an Updatable Recordset

Please disregard my earlier post. Problem was a simple omission on my part
(which was not reflected in the code snip I posted),

--
Bob Darlington
Brisbane
"Bob Darlington" <bob@dpcmanAX.com.au> wrote in message
news:406b806b$0$25655$afc38c87@news.optusnet.com.a u...[color=blue]
> I am using code (simplified for this post) to generate a recordset to[/color]
which[color=blue]
> I want to add a record.
>
> Set rs = db.Openrecordset("SELECT * FROM qVariations WHERE ......")
> ws.Begintrans
> If rs.Updatable then
> rs.AddNew
> rs!LAN = vLAN
> rs.Update
> etc
>
> The fifth line generates Error 3027 (Cannot Update. Database or Object is
> read only).
> The query (qVariations) can be manually edited.
> I am using A2002.
> I would have thought that the Updatable test would identify any problems.
> Any help appreciated.
>
> --
> Bob Darlington
> Brisbane
>
>[/color]


 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,840 network members.