Selected Records

J

JonWayn

How would I programatically determine what records are selected on a subform
so I could take action on just those records - example: delete them?

Thank you
 
G

Gary Miller

Jon,

How are you 'selecting' these records? AFIK you can only
select one at a time using the Access Form Record Selector.
Are you selecting them in some other manner such as a check
box?

More details would help a lot.

Gary Miller
Sisters, OR
 
J

JonWayn

No, I am using the record selector to select multiple records. Click on the
record selector of, say, record #2 and drag down and you will get a black
highlight over each sebsequent record whose record selector you drag over.

Ho can I refer in code to all the highlighted records?
 
B

Bruce M. Thompson

No, I am using the record selector to select multiple records. Click on the
record selector of, say, record #2 and drag down and you will get a black
highlight over each sebsequent record whose record selector you drag over.

Ho can I refer in code to all the highlighted records?

See the .SelTop and .SelHeight form properties in Access Help. SelTop will give
you the first selected record and SelHeight will give you the number of selected
records.
 

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