alternate row color override with box (1 Viewer)

Wysy

Registered User.
Local time
Today, 11:42
Joined
Jul 5, 2015
Messages
333
Hi,
I have created a continous form with alternate row settings. It is a pop up form and i wanted to have better look of it, like having margins on both side. So in the form header i have added to box on both lateral end with white color. It is ok, look like having margins.
I have added to two box in the details part of the form with white back color. However when alternate row color is set, the boxes appear as the alternate row color, so it does not "look" like having a margin. If i change the color of the boxes anything but white, the alternate row color does not override that color, so a kind of margin appears. Any idea?
Thanks
 

isladogs

MVP / VIP
Local time
Today, 19:42
Joined
Jan 14, 2017
Messages
18,213
Screenshots in form and design view would help make sense of this.
However, if I understand you properly, this is easily achieved using a form and subform where the subform is slightly narrower than the main form creating a margin. Scrap the two boxes.
 

Wysy

Registered User.
Local time
Today, 11:42
Joined
Jul 5, 2015
Messages
333
Attached the normal view
 

Attachments

  • Capture2.JPG
    Capture2.JPG
    21.4 KB · Views: 138

Wysy

Registered User.
Local time
Today, 11:42
Joined
Jul 5, 2015
Messages
333
and in design view
 

Attachments

  • Capture1.JPG
    Capture1.JPG
    45.2 KB · Views: 139

isladogs

MVP / VIP
Local time
Today, 19:42
Joined
Jan 14, 2017
Messages
18,213
That's what I thought. Use an unbound, possibly empty, form as a container and put what you have now in a subform which is slightly narrower
 

Wysy

Registered User.
Local time
Today, 11:42
Joined
Jul 5, 2015
Messages
333
Yes that what i have done, put a box there. If back color others than white it works, but with white not.
 

Wysy

Registered User.
Local time
Today, 11:42
Joined
Jul 5, 2015
Messages
333
It does not work. It is a continous form and if a i put a subform in it changes back to single form. I need it to be a continous form.
 

Gasman

Enthusiastic Amateur
Local time
Today, 19:42
Joined
Sep 21, 2011
Messages
14,264
It does not work. It is a continous form and if a i put a subform in it changes back to single form. I need it to be a continous form.
I have created plenty of continuous subforms?
 

Pat Hartman

Super Moderator
Staff member
Local time
Today, 14:42
Joined
Feb 19, 2002
Messages
43,257
The form in design view shows three controls but in form view we see only one.

Regarding the "margin" control. If the background is set to Normal, the color, whatever it is, should not be altered by the alternate background color.
 

Wysy

Registered User.
Local time
Today, 11:42
Joined
Jul 5, 2015
Messages
333
If color of the control is white it does not work. If it for example red it works
 

Pat Hartman

Super Moderator
Staff member
Local time
Today, 14:42
Joined
Feb 19, 2002
Messages
43,257
Looks like a bug to me. I tried it with a box as well as a textbox. I also tried conditional formatting.

However, it does work if you use a button control. That seems to retain the white background:):):)
zzzControl.JPG
 

isladogs

MVP / VIP
Local time
Today, 19:42
Joined
Jan 14, 2017
Messages
18,213
I believe this is what you want:

1655588652118.png

It is a blank unbound main form with a continuous subform - exactly as described in post #5

1655588706726.png

If you don't like the subform border, make it transparent

1655588899726.png
 

Pat Hartman

Super Moderator
Staff member
Local time
Today, 14:42
Joined
Feb 19, 2002
Messages
43,257
I think what @Wysy wanted was for the part circled in pink to be white. He was using a box with a white background to try to make this happen but if the background was white, the alternate color over rode it. However, if the background of the box was an actual color like in my screen shot, it worked. In my case, it showed up as green. Look further to the right on the graybar, you see a white rectangle. That isn't a box, it is a button. Textbox, and label didn't work and neither did conditional formatting. So, I tried a button and that worked. I just removed all the formatting and made the background white. You can see it under the right part of the CustName field.
zzzboarder.JPG
 

Wysy

Registered User.
Local time
Today, 11:42
Joined
Jul 5, 2015
Messages
333
Thank you, that is exactly what i wanted. What is actually really my question by now is that why the white color does not work???
 

Wysy

Registered User.
Local time
Today, 11:42
Joined
Jul 5, 2015
Messages
333
yes i did, thank you. if this color issue is a bug, then i can understand. I have just wondered how this can be sold. Your button solution worked for me too, but even if i set border style to transparent there is small marking around it that bothered me. I think i will use the subform solution.. Thanks for all the help.
 

isladogs

MVP / VIP
Local time
Today, 19:42
Joined
Jan 14, 2017
Messages
18,213
The subform solution is very simple to implement and it does exactly what you seemed to be describing in post #1.
There is no issue using a continuous form in a subform.

The issue you may have been thinking of is that you cannot add a subform to the detail section of a continuous form.
However, even that can be solved by placing the subform in the header or footer section
 

Wysy

Registered User.
Local time
Today, 11:42
Joined
Jul 5, 2015
Messages
333
Thank all of you! Your professional advises help me lot. This forum is the best of all! Thanks again.
 

Users who are viewing this thread

Top Bottom