dbTalk Databases Forums  

Query Problem: Update only works with a value

comp.database.ms-access comp.database.ms-access


Discuss Query Problem: Update only works with a value in the comp.database.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
John Shaw
 
Posts: n/a

Default Query Problem: Update only works with a value - 05-28-2004 , 06:20 PM






Hi,

I'm running a query in VBA and it doesn't work when I try to clear the
value in Flag_Reason. When I use this:

sqlstr = "UPDATE Monthly_Transactions SET FLAG = FALSE, Flag_Reason =
'' WHERE (MCC_Code = 7299 AND Record_Initiated = FALSE)"
CurrentDb().Execute sqlstr

it doesn't work. But when I use this:

sqlstr = "UPDATE Monthly_Transactions SET FLAG = FALSE, Flag_Reason =
'a' WHERE (MCC_Code = 7299 AND Record_Initiated = FALSE)"
CurrentDb().Execute sqlstr

It works. I'm baffled.

John

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.