Re: Why wont this work in a update query
- From: "Van T. Dinh" <VanThien.Dinh@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sat, 29 Apr 2006 03:36:44 +1000
If you look at this part of the SQL you posted:
" ... SET dbo_TblProductVersion.Attachments =
IIf([dbo_tblProductversion].[Attachments]=True,"Y","N") ... "
If [Attachments] is a Text Field, the first argument of the IIf is incorrect
since you compared a Text value with a Boolean value.
If [Attachments] is a Boolean Field, you cannot update its value with either
Text value "Y" or "N".
Either way (Text or Boolean Field), you will have error(s) with the Update
SQL due to data type mismatch!
--
HTH
Van T. Dinh
MVP (Access)
"troy" <troy@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:CD1D3102-E66F-4BD1-8D9B-6891C06AAF31@xxxxxxxxxxxxxxxx
HU?
Yes I changed my Y/N to a Text filed so my update query will pass to a
text
filed not a Y/N datatype
Attachments: IIf(dbo_tblProductversion.Attachments=True,"Y","N")
.
- References:
- Re: Why wont this work in a update query
- From: Duane Hookom
- Re: Why wont this work in a update query
- From: troy
- Re: Why wont this work in a update query
- From: Van T. Dinh
- Re: Why wont this work in a update query
- From: troy
- Re: Why wont this work in a update query
- Prev by Date: Re: New to queries: parameter query with dropdown box?
- Next by Date: Re: Undide a query.
- Previous by thread: Re: Why wont this work in a update query
- Next by thread: Re: Why wont this work in a update query
- Index(es):
Relevant Pages
|