Selected Records

  • Thread starter Thread starter JonWayn
  • Start date Start date
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
 
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
 
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?
 
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.
 
Back
Top