Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 871
  • Last Modified:

Moving controls to front or back in an Access 2003 report without using code

I have some controls (text boxes and rectangles) in the detail section of an Access 2003 report that, when the report is opened, appear to be stacked on top of each other.  (This is a different question than one asked previously)  Some of these work as expected but others do not.  Some of the controls display in color which requires the back style property to be normal instead of transparent.

Using the format option to send the control to front or back works on some controls but not others.  I'm guessing this means some property setting must be changed to make it work consistently.  I also find that when selecting a group of controls (two or more) to change the format option to send to front or back does not work.  I'm only able to change this format option on one control at a time.

I need to know two things.  First, is the solution to my problem to get the format option to send a control to front or back to work as needed?  If so, what must I do to make that happen?  If not, please advise what I should try to make all the controls display as desired.
0
Liberty4all
Asked:
Liberty4all
  • 3
  • 3
2 Solutions
 
Jim Dettman (Microsoft MVP/ EE MVE)PresidentCommented:
<<First, is the solution to my problem to get the format option to send a control to front or back to work as needed? >>

  I'm not sure what your seeing, but I've never known the send to front or back not to work.

<<If so, what must I do to make that happen? >>

  The only thing that I can think of (and it is confusing), is that when you have more then two controls, it's not obvious in what order their in, nor can you place a control anywhere other then the top (front) of the stack, or bottom (back).

 Because of that, when you have more then two controls, then very often you need to select each control and peform an operation on it.

 For eaxmple, if I had controls A, B, and C and I wanted C on top, B in the middle, and A on the bottom, you would:

1. Select C and do send to back
2. Select B and do send to back
3. Select A and do send to back.

Hope that helps
Jim.
0
 
Liberty4allAuthor Commented:
Your explanation of why it's necessary to perform this operation on each control individually as opposed to doing it for a group makes sense.  

Referring to your example for having control C on top, is the reason for sending it to the back before doing the same for control B and A is that when B is sent to the back it puts B behind C, and then A is behind B?
0
 
Jim Dettman (Microsoft MVP/ EE MVE)PresidentCommented:
<<Referring to your example for having control C on top, is the reason for sending it to the back before doing the same for control B and A is that when B is sent to the back it puts B behind C, and then A is behind B? >>

 Yup...exactly.

Jim.
0
Transaction-level recovery for Oracle database

Veeam Explore for Oracle delivers low RTOs and RPOs with agentless transaction log backup and transaction-level recovery of Oracle databases. You can restore the database to a precise point in time, even to a specific transaction.

 
Liberty4allAuthor Commented:
I'm trying to move the controls as you describe above and it's working for some but not others.  Can you suggest what might be causing some not to respond as expected?
0
 
Jim Dettman (Microsoft MVP/ EE MVE)PresidentCommented:
<<Can you suggest what might be causing some not to respond as expected? >>

 As I said in my first comment, I'm not sure what your seeing, but I've never know the z ordering not to work.  It can get confusing if some of the controls are transparent.

You can try the reverse; select the control you want on the bottom, do "Bring to front", then continue with the next.  The last one you select and bring to front will be the one on the top and the one you should see rendered fully.

Jim.
0
 
Liberty4allAuthor Commented:
Jim, the process you describe does work.  I also tried the reverse of bringing each control to the front instead of sending them to the back.  I find that in some cases when neither approach works it's necessary to select the control you want in front to select that and then the order is as expected.  I cannot determine why it doesn't seem to work consistently but when you play with it enough it eventually works as desired.  

I appreciate your help and quick response on this.  I would not have been able to solve this on my own.

Bryan
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now