i have a table named book_info where it has a a column name "Accession Number" that has 5 inputs in it "1,2,3,4 and 5", i've tried to get the max value on it:
Expand|Select|Wrap|Line Numbers
- dim a as long
- a = adoAdd.RecordSource = "Select MAX(Accession Number) from book_info"
- lblAccNo= a
is my syntax wrong? if it is can you reply with the correct code? Thank you