hum, why not change that "," to a and to join the where stuff together?
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=7227Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=7227
I never seen that syntax of using a "," to separate where clauses.
It should also be noted that you 2nd where clause is course a implied join,
and this is legal in msaccess.
However, I see a LOT of different sql dialect, and this is the first time
seen (or know) that you could simply separate "where" clauses by a ",".
(it might be a common place thing..but this is first time I noticed that you
could do this!! - so, I guess I learn something new every day).
Perhaps changing the "," to a "and", and also adding () around the 2nd set
of where will work?
Something like:
> UPDATE GIS_EVENTS_TEMP SET GIS_EVENTS_TEMP.FSTHARM1 =
> HarmfulEvent.HarmfulEvent
> WHERE (((HarmfulEvent.UnitId)=1) AND ((HarmfulEvent.ListOrder)=0) AND
> ((GIS_EVENTS_TEMP.CASEID)=[harmfulevent].[crashnumber]))
and
(
>
> GIS_EVENTS_TEMP.FSTHARM1 = HarmfulEvent.HarmfulEvent
> WHERE (((HarmfulEvent.UnitId)=2) AND ((HarmfulEvent.ListOrder)=1) AND
> ((GIS_EVENTS_TEMP.CASEID)=[harmfulevent].[crashnumber]));
>
)
Give the above a try, and note how I just added a "and" and a set of ()
around the sql...
--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
pleaseNOOSpamKallal@msn.com http://www.members.shaw.ca/AlbertKallal