D
DebbieG
I have an update query that was working great until there needed to be a
change made.
Previously, I was told to gather the most current score by doing:
(SELECT MAX(DateTaken) FROM SAT Where SAT.SSN = Students.SSN) Or Is Null
Now they want the highest score no matter when the test was taken. I tried
to add this code
(SELECT MAX(SATComb) FROM SAT Where SAT.SSN = Students.SSN) Or Is Null
but it won't work because I had to do this to the field:
defSATComb: Format([SATComb],"0000")
because it has to output 4 characters and it's not finding anything with
less than 4 characters or the nulls.
In the SAT table for the SATComb field, I have:
Field size: Integer
Format: Fixed
Input Mask: 0000;1;_
but if I enter a score of 0720 it stores as 720.
Am I missing something very simple? Can anyone help me?
Thanks in advance,
Debbie
change made.
Previously, I was told to gather the most current score by doing:
(SELECT MAX(DateTaken) FROM SAT Where SAT.SSN = Students.SSN) Or Is Null
Now they want the highest score no matter when the test was taken. I tried
to add this code
(SELECT MAX(SATComb) FROM SAT Where SAT.SSN = Students.SSN) Or Is Null
but it won't work because I had to do this to the field:
defSATComb: Format([SATComb],"0000")
because it has to output 4 characters and it's not finding anything with
less than 4 characters or the nulls.
In the SAT table for the SATComb field, I have:
Field size: Integer
Format: Fixed
Input Mask: 0000;1;_
but if I enter a score of 0720 it stores as 720.
Am I missing something very simple? Can anyone help me?
Thanks in advance,
Debbie