The datatype is Number - no decimal places
The SQL is:
UPDATE Members, Golfers1 SET Members.Handicap = Golfers1![Hcp Index],
Members.LastPart = Golfers1!Date, Members.NumParts = Members.NumParts+1
WHERE (((Golfers1.Number)=[Members].[GHIN]));
For clarity - the Members table contains a lost of all my members; the
Golfers1 table is a spreadsheet of activity by members
I really appreciate your help - it seems to be making multiple runs through
the "golfers1" file (??)
I am saying - if the GHIN/Golfers numbers are equal, replace the date,
handicap and add 1 to the number of rounds played
> Hi Jimbo,
>
[quoted text clipped - 62 lines]
>>>>
>>>> JM
John W. Vinson - 19 Mar 2007 01:27 GMT
>I really appreciate your help - it seems to be making multiple runs through
>the "golfers1" file (??)
>
>I am saying - if the GHIN/Golfers numbers are equal, replace the date,
>handicap and add 1 to the number of rounds played
Use a JOIN rather than a WHERE clause:
UPDATE Members
INNER JOIN Golfers1
ON Golfers1.Number=[Members].[GHIN]
SET Members.Handicap = Golfers1.[Hcp Index],
Members.LastPart = Golfers1.Date,
Members.NumParts = Members.NumParts+1;
John W. Vinson [MVP]
Jimbo - 19 Mar 2007 02:01 GMT
Many Thanks - that seems to have done it !!
>>I really appreciate your help - it seems to be making multiple runs
>>through
[quoted text clipped - 13 lines]
>
> John W. Vinson [MVP]