O
ooxx
Hi,
I am really shy to ask this question again since then from subject "Max no
group" .
You can refer to sample data.
SELECT *
FROM myTable
WHERE f3= ( SELECT MAX(f3)
FROM myTable as X
WHERE X.F1 = MyTable.X1 )
As I have applied this to my form code as shown below:
It was to much help for me, Thanks.
CurrentDb().Execute _
"Update myTable Set f3 = 99 WHERE f3 = (SELECT MAX(f3) FROM myTable as X
WHERE X.F1 = '" & Me.T1 & "')"
This is the code and it was on me in finding max value of "f3" to update
record of "f3" according to "T1" control textbox.
By the way, I 'd like to have the code to find the second max value or third
of "f3" with only single code. hehehe... I try that but it took me too much
storage of text code inside. I'd like short.
Anybody help?
Thanks,
I am really shy to ask this question again since then from subject "Max no
group" .
You can refer to sample data.
SELECT *
FROM myTable
WHERE f3= ( SELECT MAX(f3)
FROM myTable as X
WHERE X.F1 = MyTable.X1 )
As I have applied this to my form code as shown below:
It was to much help for me, Thanks.
CurrentDb().Execute _
"Update myTable Set f3 = 99 WHERE f3 = (SELECT MAX(f3) FROM myTable as X
WHERE X.F1 = '" & Me.T1 & "')"
This is the code and it was on me in finding max value of "f3" to update
record of "f3" according to "T1" control textbox.
By the way, I 'd like to have the code to find the second max value or third
of "f3" with only single code. hehehe... I try that but it took me too much
storage of text code inside. I'd like short.
Anybody help?
Thanks,