"invisible" box on form in layout view (1 Viewer)

mistyinca1970

Member
Local time
Today, 02:25
Joined
Mar 17, 2021
Messages
117
Can someone tell me what this red dotted box is? This is on a form within a navigation form. This shows in layout view, and it doesn't appear on any other form in the navigation form. I also do not see it when I open the target form on its own in layout view. I can't seem to select it. Any ideas?
boxonform.PNG
 

theDBguy

I’m here to help
Staff member
Local time
Today, 02:25
Joined
Oct 29, 2018
Messages
21,357
Do you still see it when you use a different computer? Just wondering if it's a graphics display issue.
 

CJ_London

Super Moderator
Staff member
Local time
Today, 09:25
Joined
Feb 19, 2013
Messages
16,553
have you tried opening the target form in design view?
 

The_Doc_Man

Immoderate Moderator
Staff member
Local time
Today, 04:25
Joined
Feb 28, 2001
Messages
26,996
If it shows in Layout view then it is a remnant of something that was built with Layout enabled. You can remove this remnant, which is essentially a "layout box," by "ungrouping" controls on the form.

 

mistyinca1970

Member
Local time
Today, 02:25
Joined
Mar 17, 2021
Messages
117
If it shows in Layout view then it is a remnant of something that was built with Layout enabled. You can remove this remnant, which is essentially a "layout box," by "ungrouping" controls on the form.

I tried that. None of my text boxes or anything have a layout attached to them. When I right click each control and select Layout, there is no option to remove layout.
 

The_Doc_Man

Immoderate Moderator
Staff member
Local time
Today, 04:25
Joined
Feb 28, 2001
Messages
26,996
OK. Nonetheless, I find it highly suspicious that your "phantom" line exactly aligns with the left edge of the labels in the box where you have circled the line. Maybe research "Remove Layout" and see if you can find a tutorial on getting rid of it. I know it used to make me crazy until I turned layouts off from the File >> Options >> Current Database. Damned if I can recall exactly where it is from there, but I got rid of it because I was using dynamic control placement based on user roles and need that feature to just go away. I'd look a little deeper. BUT I also recall it was hard to "hold my mouth right" to achieve that turnoff.
 

mistyinca1970

Member
Local time
Today, 02:25
Joined
Mar 17, 2021
Messages
117
OK. Nonetheless, I find it highly suspicious that your "phantom" line exactly aligns with the left edge of the labels in the box where you have circled the line. Maybe research "Remove Layout" and see if you can find a tutorial on getting rid of it. I know it used to make me crazy until I turned layouts off from the File >> Options >> Current Database. Damned if I can recall exactly where it is from there, but I got rid of it because I was using dynamic control placement based on user roles and need that feature to just go away. I'd look a little deeper. BUT I also recall it was hard to "hold my mouth right" to achieve that turnoff.
To prove my point, I made a copy of the form so I can mutilate it at will (he he). I started deleting controls one by one, and then I skewed them here so you can see its not a layout.
boxonform2.PNG
 

mistyinca1970

Member
Local time
Today, 02:25
Joined
Mar 17, 2021
Messages
117
Well I still don't know why, but I know what it is associated with now. I started rebuilding this form piece by piece and once I added the on load event that opens a form (or not if the recordset is 0) and a msg box, that dotted frame appeared. The addition of none of the controls produced the box. So I guess I live with it. Maybe some skeleton that indicates a form will pop up over this one...?????
 

The_Doc_Man

Immoderate Moderator
Staff member
Local time
Today, 04:25
Joined
Feb 28, 2001
Messages
26,996
Is there some form that is displayed underneath this one? I.e. is the form you show us an overlay? And is there even the slightest bit of transparency defined for the overlaying form's .BackColor?

Adding an OnLoad event should NOT produce any outline unless it actually opens a form as you describe. That is a binary event. To quote that great philosopher Yoda.... There is no "try"; there is only "Do" or "Not Do."
 

June7

AWF VIP
Local time
Today, 01:25
Joined
Mar 9, 2014
Messages
5,423
You could provide your db for analysis, see if we get the same behavior. I don't recall ever seeing this.
 

vhung

Member
Local time
Today, 02:25
Joined
Jul 8, 2020
Messages
235
To prove my point, I made a copy of the form so I can mutilate it at will (he he). I started deleting controls one by one, and then I skewed them here so you can see its not a layout.
View attachment 93286
That maybe, share your actual form as attach file to have a full view of your form.
Let others see it... share accdb file with that form
 

Pat Hartman

Super Moderator
Staff member
Local time
Today, 05:25
Joined
Feb 19, 2002
Messages
42,970
I feel so left out. I can't see the red box at all :(
 

June7

AWF VIP
Local time
Today, 01:25
Joined
Mar 9, 2014
Messages
5,423
It is barely visible in image in original post.
 

isladogs

MVP / VIP
Local time
Today, 09:25
Joined
Jan 14, 2017
Messages
18,186
It is barely visible in image in original post.
Its slightly clearer in post #8.
Reminds me of the old dotted square bug from one of Helen Feddema's Access Archon articles from a few years ago.
1627666590885.png

See attached for further info on that bug
 

Attachments

  • accarch215.zip
    517.2 KB · Views: 284

The_Doc_Man

Immoderate Moderator
Staff member
Local time
Today, 04:25
Joined
Feb 28, 2001
Messages
26,996
Yes, in post #8 the red line is visible to me. I seem to recall that it is possible to disconnect something from the layout box without actually removing the box. Which means that Misty's actions to move things around aren't totally definitive at eliminating this as a layout box.

If the original members of the layout group are disconnected but the layout grid is still present, you would get the result she showed in post #8, but if you look carefully at post #1 along the left edges of the labels, that thin red line is there too. I don't know how my old macular degenerated eyes can see that, but I can.

The line overlaps the label or text box that is above the aligned items in #1, that box where the text starts with "Use this form..." - and the line goes horizontally through the bottom quarter of the letters in the first text line of that box. The vertical line rises perfectly aligned with the left edge of the labels but is a very small distance inside the afore-referenced label or text box that is above the other items. If that was a screen capture then to me it is a quite real feature/anomaly.
 

mistyinca1970

Member
Local time
Today, 02:25
Joined
Mar 17, 2021
Messages
117
OK, but as I had updated. I rebuilt the form control by control and the box only appeared after adding the the on load event to open another form in the event that the recordset in the other form is >0. So the box is somehow related to the on load event after the msg box is cleared. So there is no way it is a layout.
 

June7

AWF VIP
Local time
Today, 01:25
Joined
Mar 9, 2014
Messages
5,423
I have never experienced this so no idea how to correct. Again, suggest you provide your db for analysis.
 

The_Doc_Man

Immoderate Moderator
Staff member
Local time
Today, 04:25
Joined
Feb 28, 2001
Messages
26,996
I know of no way that adding an event routine would affect anything in the graphic interface until the event actually fired, and then it would depend on the content / code of the event routine. The event routines are in general or class modules which do not affect the graphic layout directly. However, the simplest test would be to remove the event routine that you think is the culprit, erase it, and see if the box goes away. There is no linkage between an event routine and the way something is displayed UNLESS the event fires. What was the routine supposed to do?

Back to the original question as stated... does that line show up in any other view? And does it get in the way of anything? If it goes away in Form View and doesn't affect anything including future development, ignore it.
 

Uncle Gizmo

Nifty Access Guy
Staff member
Local time
Today, 09:25
Joined
Jul 9, 2003
Messages
16,243
It is something that is tempting to describe as a bug!

And there you have it, uncles law, if you think it's a bug, then it's user error, something I have done is causing the issue.

I started rebuilding this form piece by piece and once I added the on load event that opens a form

You have two options, either post this sample database after removing any confidential information.

If it is a laborious task to sanitize the database, then create a very simple version using public data or self-created data. (I usually down a copy of the northwind database and use one of the tables in that)

Then post that.
 

Users who are viewing this thread

Top Bottom