Sorry about the lack of information:
UPDATE [tbl CWT weekly] LEFT JOIN [CWT suspensions] ON [tbl CWT weekly].
Reason = [CWT suspensions].[Suspension reasons] SET [tbl CWT weekly].Reason =
[CWT suspensions.Suspension code];
Thats the SQL statement and its the same for each of the four queries except
instead of 'reason' the other fields are called field 33 field 36 and field
39.
>The issue that can stop you from being able to do this (which could be
>answered IF you posted the queries) is if the criteria for each of the
[quoted text clipped - 5 lines]
>
>Ron
John Spencer - 28 Apr 2008 15:50 GMT
That's a start.
Post the other queries. AND post the query that does not work for you.
By the way the set line of your posted query doesn't read correctly. The
brackets around
[CWT suspensions.Suspension code]
should be
[CWT suspensions].[Suspension code]
UPDATE [tbl CWT weekly] LEFT JOIN [CWT suspensions]
ON [tbl CWT weekly].Reason = [CWT suspensions].[Suspension reasons]
SET [tbl CWT weekly].Reason =[CWT suspensions].[Suspension code]
John Spencer
Access MVP 2002-2005, 2007-2008
Center for Health Program Development and Management
University of Maryland Baltimore County
> Sorry about the lack of information:
>
[quoted text clipped - 15 lines]
>>
>> Ron
Accessghostrider - 28 Apr 2008 16:14 GMT
UPDATE [tbl CWT weekly] INNER JOIN [CWT suspensions] ON [tbl CWT weekly].
Field39 = [CWT suspensions].[Suspension reasons] SET [tbl CWT weekly].Field39
= [CWT suspensions.Suspension code];
Above is another sql statement for another update query, it is identical to
the previous sql statement posting besides the column name is field 39, both
work fine alone. when i put them in the same update query it looks like this:
UPDATE [tbl CWT weekly] INNER JOIN [CWT suspensions] ON [tbl CWT weekly].
Field39 = [CWT suspensions].[Suspension reasons] SET [tbl CWT weekly].Field39
= [CWT suspensions.Suspension code], [tbl CWT weekly].Reason = [CWT
suspensions.Suspension code];
but doesn't work the same as when both were in individual queries.
Thanks for helping
>That's a start.
>Post the other queries. AND post the query that does not work for you.
[quoted text clipped - 19 lines]
>>>
>>> Ron
John Spencer - 28 Apr 2008 16:32 GMT
UPDATE [tbl CWT weekly] LEFT JOIN [CWT suspensions]
ON [tbl CWT weekly].Reason = [CWT suspensions].[Suspension reasons]
SET [tbl CWT weekly].Reason = [CWT suspensions].[Suspension code];
UPDATE [tbl CWT weekly] INNER JOIN [CWT suspensions]
ON [tbl CWT weekly].Field39 = [CWT suspensions].[Suspension reasons]
SET [tbl CWT weekly].Field39 = [CWT suspensions].[Suspension code];
You have changed the type of join and the join criteria between those two
queries. You are going to get different results and there is really no good
way to change all four fields at one time - at least based on my current
knowledge of your table structures.
John Spencer
Access MVP 2002-2005, 2007-2008
Center for Health Program Development and Management
University of Maryland Baltimore County
> Sorry about the lack of information:
>
[quoted text clipped - 15 lines]
>>
>> Ron