How would I make an if statement for if it's the last record in the recordset to do something?

Thanks.

I tried (if rst.EOF) but that didn't work.