Detail focus?

  • Thread starter Thread starter maarkr
  • Start date Start date
M

maarkr

I made a form that with a combo box in a header to filter
out Organization Types. I use a different form to modify
the data in that table.

If I select an OrgType I can scroll down my continuous
forms to many records. I want to put a button on the
frmOrgType to open the frmModify. If I scroll down past
the first record retrieved, if I don't click on the Detail
portion of the form, it only opens the first record,
instead of the one shown on the screen.

I've got the code to open the new form from the current
record, but I tried to move the focus to a field in the
detail portion, but that didn't work. I need a line of
code to select the detail portion on the screen before I
invoke the form opening that record. Make sense?
 
Make sense? Not completely. There should be no reason to "give focus" to the
Detail section (in fact, it won't get focus so long as there is a control in
the Detail section that can receive the focus). As for opening a form based
on the record where the command button is located, when you click the
command button that record becomes the current one, and if your code is
reading a value from a control in that part of the form, it should get the
correct value to be used.

Can you give us more info about your setup and what the record sources are
for the first form and the second form?
 
Back
Top