I have the following code that retrieves the longest name from a table:
Any ideas on how to modify this statement to get the record number in the resulting query? Thanks.
Swi
Code:
rs.Open "SELECT [NAME] FROM [TESTIT] WHERE LEN(" & [NAME] & ") = (SELECT MAXLEN([NAME])) FROM [TESTIT])", conn, adOpenForwardOnly, adLockReadOnly, adCmdText
Any ideas on how to modify this statement to get the record number in the resulting query? Thanks.
Swi