Hi bdmir
In your details Format event, you can use
Me.Top to indicate where your detail STARTS.
If you need to know where you detail ENDS it depends on whether you have fields that can grow. If you dont its simply a matter of taking the lowest/bottom-most control on your detail (lets say tb_Example) and it would look like:
- Dim lngBottom as long
-
lngBottom=Me.Top+Me.tb_Example.Top+Me.tb_Example.Height
Now if you do have controls that can grow, you can use Stephen Lebans fCanGrow code to determine the height of the growing control, and adjust the code accordingly.
I have used code such as this myself, to determine whether or not to force a pagebreak after a detail.