G
Guest
I have a update query that uses the DCount function to rank the scores for an
athletic event. It parses one table (ENTRIES) for the scores, Event ID, and
AgeGroup which it uses to determine the scope of the ranking process. It has
worked for years but now, due to changes in the scoring rules I need to store
the scores and ranks in a different(new) table (SCORES) than the event ID and
age group. I could save event ID and age group in both tables but that is
counter to a well designed database.
the function that has worked for years is:
IIf([Entries].[old score]>0,1+DCount("*","Entries","[old score]>" & [old
score] & " And [Fee ID]=[Forms]![Record Scores]![Fee ID] AND [Age
Group]=[Forms]![Record Scores]![Age Group]"),Null)
I have ried to change it to :
IIf([Scores].[Score]>0,1+DCount("*","Scores","[Score]>" & [Score] & " And
[Entries].[Fee ID]=[Forms]![Record Scores]![Fee ID] AND [Entries].[Age
Group]=[Forms]![Record Scores]![Age Group]"),Null)
Now I get the error "...Access can't find the name 'Entries.Fee ID' you
entered in and expression" I get the error for each record that should be
updated.
HELP I can't figure this out but there must be an alternative to what I
have tried
athletic event. It parses one table (ENTRIES) for the scores, Event ID, and
AgeGroup which it uses to determine the scope of the ranking process. It has
worked for years but now, due to changes in the scoring rules I need to store
the scores and ranks in a different(new) table (SCORES) than the event ID and
age group. I could save event ID and age group in both tables but that is
counter to a well designed database.
the function that has worked for years is:
IIf([Entries].[old score]>0,1+DCount("*","Entries","[old score]>" & [old
score] & " And [Fee ID]=[Forms]![Record Scores]![Fee ID] AND [Age
Group]=[Forms]![Record Scores]![Age Group]"),Null)
I have ried to change it to :
IIf([Scores].[Score]>0,1+DCount("*","Scores","[Score]>" & [Score] & " And
[Entries].[Fee ID]=[Forms]![Record Scores]![Fee ID] AND [Entries].[Age
Group]=[Forms]![Record Scores]![Age Group]"),Null)
Now I get the error "...Access can't find the name 'Entries.Fee ID' you
entered in and expression" I get the error for each record that should be
updated.
HELP I can't figure this out but there must be an alternative to what I
have tried