reseting format of form

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Quick question.

I have a form that is for display purposes only where the objects move based
upon what is checked. For example 'object A' may be half way down the page
on the first record and at the top on the next. The problem is: When you
change records the objects move based upon where they were positioned in the
previous record, not where they are in the design of the form. Because there
are a hundred or so objects i don't wan't to reset them individually. Is
there a command or sequence of code that will reset the position of an object
to its original value when a new record is selected?

Thanks
 
How are you moving them currently? I'd write code to test the value of
what is checked and then reset the objects' LEFT and TOP properties
based on what you find with your check boxes.
 
I'm using the Top property. I was hoping i wouldn't have to reset them all
individually. I was hoping there was a command such as docmd.detail.reset???
 
Sorry, forgot to address the fact that you have so many objects. I'm
not sure, but maybe there is some way to set them as a group and then
control the group instead of each object. Grouping is the easy part,
but I took a quick look and don't see a way to name the group. But I
might be missing something. It would be a lot easier than writing all
that code for so many objects.
 
Back
Top