update query in SQL (1 Viewer)

Sleekmac

Registered User.
Local time
Yesterday, 23:22
Joined
Sep 25, 2006
Messages
34
Does anybody see anything wrong with this Update query please?

mySQL2="UPDATE Interp rates SET Interp Rates.Next Rate=nextrate WHERE (((F1)='ZAR')and (isnull(F5)=True))"

(The table is [Interp Rates], the field I want to update is [Next Rate], and the set is any record where [F5] is Null and where [F1] is "ZAR".

When it encounters the doCmd runSQL2, it returns "Syntax error in UPDATE statement."

Thanks in advance!
Don
 
Last edited:

FoFa

Registered User.
Local time
Yesterday, 22:22
Joined
Jan 29, 2003
Messages
3,672
AND F5 IS NULL

Also your Interp rates should be enclosed in brackets as such [Interp rates] since it contains a space, same with Next Rate
 

Sleekmac

Registered User.
Local time
Yesterday, 23:22
Joined
Sep 25, 2006
Messages
34
Thanks! I knew it was something simple like that. :)
 

Users who are viewing this thread

Top Bottom