Access form controls

G

Guest

Hi
I have a form with a subform. the subform shows continuos data from a table.

the contorl on the subform is timeslot and is recreated every time the form
is opend but 1 is crested for each record.
My problem is how to I set focus to timeslot on any row of data other than
the first?

this code sets focus ok;
Form_frmVMasterSheetSub.TimeSlot.SetFocus

but only to the actual timeslot control. when the form is populated the
maybe 10 or 20 timeslot controls on the form how can I set focus to those
controls?


Thanks for any help
smudge
 
G

Guest

Dear Smudge,
Unfortunately one object can have the focus at a time,
if you want to set the focus on a object while going to that record. put the
..setfocus for the object in the on Current event of the form/subform.
this way when the control is move from one record to the other, focus will
be set to the desired control on the page.
 

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