I have access 2007 form which contains some of the lists and one image that I used to re-size using on-click event but when it gets re-sized it becomes behind my lists even if I set the position property to "bring to front" and "send to back" for my lists and by the way it works well with text fields ; any suggestion ?
I haven't tried Access 2013, but up until Access 2010 Listboxes and a few other elements do not support z-order positioning (behind or in front of other controls). They are always on top.
In 2010 I use Layouts to expand / shrink the form as elements grow. Another thing you could try is to put the image in a new form, and set the window border, title, etc to nothing. Then you could open the image (as a form) and position it using DoCmd.MoveSize
Related
i need to create a footer that can stay at the bottom of every pages of the report, but i can't use the standard function because i need to hide some element before it self.
I hope that i've explained correctly!
Somebody can help me?
If I've understood you correctly, you should be able to do this by creating rectangles to hold your report content.
If you need a header, body and footer then you would need 3 rectangles, if you only need the main body and a footer then 2 rectangles.
For simplicity, let's say you page is 29cm high and the bottom 6cm will contain the footer.
You create a rectangle that is 23cm high and wide enough to hold the elements you need in it. Then your seconds rectangle immediately below will be 6cm.
Within each rectangle, place you report elements (text boxes, tables etc).
Note: If you already have the report elements in your report, do not drag them over the rectangle as this will literally overlay them, instead, select everything you ned, then cut them. Then click in the rectangle to make it active and paste them, this way the rectangle will be the container. If you are creating the elements from new then you can add them within the rectangle as normal.
Once all your body and footer elements are in position, change the 'ConsumeContainerWhiteSpace' property of Report to true. This property will prevent the rectangle from expanding as the number of rows in a table gets larger, as it will use the space in the container first.
Pop-up window comes with the default search bar in SPO tenant site. So I don't have access to modify any CSS in the search field. I want to set the div in behind when the window pops up.
Explain what you exactly mean. If you want some element in your html appear behind some other element in a single page then you need to use z-index css property. Put an integer as the value of z-index property. The first html element (the one that is behind the other) should have value less than the one that is on the front. give both of the elements z-index.
Is there some way to add a scrolling bar in the part of the labels 1,2 and 3? Cause I'll need to add a lots of labels with their respective text:
enter image description here
Thanks
Supposed that you have changed you database to use "Overlapping Documents", set the AutoResize property of the form to No and size the window manually. By default, Access will add a scrollbar to the details section if needed.
To achive this, add the fields that should not be scrollable to the form header of footer, and make sure that there's enough room to display the header and footer of the form. "Save" the form when done with resizing (Ctrl+S).
Example:
When using the "Tabbed Documents" layout, you could for example make the footer of the form very high to force the scrollbar to appear, but that scrollbar will appear at the very right border of the Access window.
We have an old MS Access app I am editing, and one of the forms contain a bunch of subforms. The subforms all contain staticly positioned objects, and should not ever scroll.
My problem is that if a user selects a TextBox towards the bottom of the subform and starts to edit it, the form auto-scrolls to bring that TextBox closer to the top, which basically cuts off the top part of the form.
How can I disable this behavior?
When form MySubForm is inserted into form MyMainForm, it is contained in a container: the SubForm object.
If MySubForm is larger than its container, the user can scroll within the container to reach any part of the subform.
In your case, just open MySubFormin Design view, and make sure its size (width and height) does not exceed the size of the container (the SubForm object located in MainForm).
If you do that , there will be no reason to scroll.
Out of the box, in MS Reporting Services, the image element does not allow for the centering of the image itself, when the dimensions are unknown at design time. In other words, the image (if smaller than the dimensions allotted on the design surface) will be anchored to the top left corner, not in the center.
My report will know the URL of the image at runtime, and I need to be able to center this image if it is smaller than the dimensions specified in my designer.
Here is how I was able to accomplish this. With help from Chris Hays
Size the image to be as big as you would want it on the report, change "Sizing" property to "Clip".
Dynamically set the image's left padding using an expression:
=CStr(Round((4.625-System.Drawing.Image.FromStream(System.Net.WebRequest.Create(Parameters!LogoURL.Value).GetResponse().GetResponseStream()).Width/96)/2,2)) & "in"
Dynamically set the image's top padding using an expression:
=CStr(Round((1.125-System.Drawing.Image.FromStream(System.Net.WebRequest.Create(Parameters!LogoURL.Value).GetResponse().GetResponseStream()).Height/96)/2,2)) & "in"
The first modification made to Chris's code was to swap out the dimensions of my image element on the report (my image was 4.625x1.125 - see numbers above).
I also chose to get the stream from a URL instead of the database. I used WebRequest.Create.GetResponse.GetResponseStream do to so.
So far so good - I Hope that helps!