Les Isaacs
Registered User.
- Local time
- Today, 13:55
- Joined
- May 6, 2008
- Messages
- 186
Hi All
I'm fairly new to subqueries - but thought I was getting there until now
I have
I've aliased 'tblSavedResults' as 'tblSavedResultss'.
I was getting a syntax error until wrapped
[tblSavedResultss]![Athlete_person_number]
between the
" &
and the
& "
This works, except that it gives the result as a string rather than as an integer result as I expected. This means that the subsequent sort is no good. I have tried putting a Val() around the whole thing, but that gave me data type mismatch error :banghead:
'Athlete_category_rank' is definitely an integer field in table 'tblSavedResults'.
Hope someone can help - thanks in advance.
Les
I'm fairly new to subqueries - but thought I was getting there until now
I have
Code:
RankSum: DSum("[tblSavedResults]![Athlete_category_rank]","[tblSavedResults]","[tblSavedResults]![Athlete_person_number]= " & [tblSavedResultss]![Athlete_person_number] & " ")
I've aliased 'tblSavedResults' as 'tblSavedResultss'.
I was getting a syntax error until wrapped
[tblSavedResultss]![Athlete_person_number]
between the
" &
and the
& "
This works, except that it gives the result as a string rather than as an integer result as I expected. This means that the subsequent sort is no good. I have tried putting a Val() around the whole thing, but that gave me data type mismatch error :banghead:
'Athlete_category_rank' is definitely an integer field in table 'tblSavedResults'.
Hope someone can help - thanks in advance.
Les
Last edited: