How do you retrieve the record number in Access?

L

Loein

I need to be able to retrieve the current record number
in a form. Does anyone know what the command is? I have
worked extensively in DBX where I was able to retrieve
the current record number. Does anyone know if there is
an equivelant command in Access?
 
G

Geof Wyght

This is from Access Help under the CurrentRecord property:
Dim lngrecordnum As Long
lngrecordnum = frm.CurrentRecord

You could have this in your Form_Current procedure.
Geof.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top