PC Review


Reply
Thread Tools Rate Thread

Can't update rows in a view if it includes a left-outer-joined bitcolumn.

 
 
Kipp Woodard
Guest
Posts: n/a
 
      31st Jul 2009
I have a SQL Server 2008 view linked to Access 2007.

I cannot make updates to the rows if the view includes a bit data-type
column from a table that is left-outer-joined. In this case, if I
change any values in a row of the view, I get the message "the record
has been changed by another user...." with options to copy the data to
the clipboard or drop the changes.

If I exclude this column from the view then the view is updateable. I
can get this column into the view without having this issue by making
it a calculation, like [1 * <column-name>].

What's going on with this?
 
Reply With Quote
 
 
 
 
Sylvain Lafontaine
Guest
Posts: n/a
 
      31st Jul 2009
First, this newsgroup is about ADP and has nothing to do with MDB/ACCDB's
ODBC Linked Tables or Views; so you should consider the possibility of
reposting this question in a more appropriate newsgroup where you'll have
more chances of finding knowledgeable peoples about this particular problem.

Second, bit fields are a known source of problems with Access - both ADP and
MDB/ACCDB - particularly when they are nullable and without any default
value. Make sure that this bit field is not nullable and has a default
value of either 0 or 1. If you make any change, don't forget to refresh the
ODBC Link after that.

Make sure also that you have all the latest service packs (and hotfixes?)
installed for your version of Access 2007.

If nothing of this can work, then consider the possibility of changing the
bit field to a small integer but then, the value True will be stored as -1
instead of 1.

Also, if you are working with a single form - instead of a continuous form -
you could replace the bound control with an unbound control and make the
necessary change to the underlying recordset when entering/leaving the
control/record but this is not a pretty solution.

Does this problem happen only when using a Left Outer Join or if it's also
happen with an ordinary Inner Join?

--
Sylvain Lafontaine, ing.
MVP - Windows Live Platform
Email: sylvain2009 sylvainlafontaine com (fill the blanks, no spam please)
Independent consultant and remote programming for Access and SQL-Server
(French)


"Kipp Woodard" <(E-Mail Removed)> wrote in message
news:f24c6d0e-24eb-4444-abe7-(E-Mail Removed)...
>I have a SQL Server 2008 view linked to Access 2007.
>
> I cannot make updates to the rows if the view includes a bit data-type
> column from a table that is left-outer-joined. In this case, if I
> change any values in a row of the view, I get the message "the record
> has been changed by another user...." with options to copy the data to
> the clipboard or drop the changes.
>
> If I exclude this column from the view then the view is updateable. I
> can get this column into the view without having this issue by making
> it a calculation, like [1 * <column-name>].
>
> What's going on with this?



 
Reply With Quote
 
Kipp Woodard
Guest
Posts: n/a
 
      1st Aug 2009
Thanks Sylvain.

I just did some more investigation and found that it is only in the
outer join that the issue occurs.

More specifically, it only occurs on the rows of the view when there
is no match in the outer joined table.
In other words, some rows are updateable, some are not.

I have a work-around, but posted this hoping to learn more about the
issue.

Kipp

On Jul 31, 3:31*pm, "Sylvain Lafontaine"
<sylvainlafontaine2...@yahoo.ca> wrote:
> First, this newsgroup is about ADP and has nothing to do with MDB/ACCDB's
> ODBC Linked Tables or Views; so you should consider the possibility of
> reposting this question in a more appropriate newsgroup where you'll have
> more chances of finding knowledgeable peoples about this particular problem.
>
> Second, bit fields are a known source of problems with Access - both ADP and
> MDB/ACCDB - particularly when they are nullable and without any default
> value. *Make sure that this bit field is not nullable and has a default
> value of either 0 or 1. *If you make any change, don't forget to refresh the
> ODBC Link after that.
>
> Make sure also that you have all the latest service packs (and hotfixes?)
> installed for your version of Access 2007.
>
> If nothing of this can work, then consider the possibility of changing the
> bit field to a small integer but then, the value True will be stored as -1
> instead of 1.
>
> Also, if you are working with a single form - instead of a continuous form -
> you could replace the bound control with an unbound control and make the
> necessary change to the underlying recordset when entering/leaving the
> control/record but this is not a pretty solution.
>
> Does this problem happen only when using a Left Outer Join or if it's also
> happen with an ordinary Inner Join?
>
> --
> Sylvain Lafontaine, ing.
> MVP - Windows Live Platform
> Email: sylvain2009 sylvainlafontaine com (fill the blanks, no spam please)
> Independent consultant and remote programming for Access and SQL-Server
> (French)
>
> "Kipp Woodard" <kip...@gmail.com> wrote in message
>
> news:f24c6d0e-24eb-4444-abe7-(E-Mail Removed)...
>
>
>
> >I have a SQL Server 2008 view linked to Access 2007.

>
> > I cannot make updates to the rows if the view includes a bit data-type
> > column from a table that is left-outer-joined. *In this case, if I
> > change any values in a row of the view, I get the message "the record
> > has been changed by another user...." with options to copy the data to
> > the clipboard or drop the changes.

>
> > If I exclude this column from the view then the view is updateable. *I
> > can get this column into the view without having this issue by making
> > it a calculation, like [1 * <column-name>].

>
> > What's going on with this?- Hide quoted text -

>
> - Show quoted text -


 
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
Left outer join =?Utf-8?B?SmFkZTU=?= Microsoft Access 10 27th Mar 2006 12:07 AM
Left join, cross-joined view, running forever =?Utf-8?B?VmlyZW4=?= Microsoft ADO .NET 3 3rd Jan 2005 02:54 PM
ADO.Net and Left outer join =?Utf-8?B?Q2hyaXMgTGV2YXNzZXVy?= Microsoft ADO .NET 1 31st Aug 2004 04:14 AM
left outer join wk6pack Microsoft Access Queries 1 24th Jan 2004 02:29 PM
Need help,please,with LEFT OUTER JOIN tomer Microsoft Access Queries 1 3rd Jan 2004 06:15 PM


Features
 

Advertising
 

Newsgroups
 


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