Printable Version of Topic

Click here to view this topic in its original format

UtterAccess Forums _ Access Forms _ Moving Controls On Form - Changes Do Not Stay

Posted by: RCDAWebmaster Feb 14 2020, 12:38 PM

I have a form. I go to layout view and move a control. I save the form and close the form. When I open the form, the controls are where they were before I moved them. How do I get them to stay where I put them? Do changes of this sort only work in design view?

Posted by: theDBguy Feb 14 2020, 12:56 PM

Hi. Just some thoughts... If you go to layout view and move some controls around and then switch to design view, are the controls moved or not? Also, I'm not sure if you mentioned it, but when you're in layout view and moved controls around and then close the form, does it ask you to save your layout changes?

Posted by: RCDAWebmaster Feb 14 2020, 01:00 PM

It's not asking me to save in layout view since I always press the disk icon (save button) upper left hand corner of the screen (Quick access toolbar). If I move something and then go to design view, it is moved. If I move something in design view, save the form close and reopen, it stays put.

Posted by: theDBguy Feb 14 2020, 01:02 PM

Well, I just gave it a try and it worked for me. Try this little experiment. Go to layout view, move a control, don't click on the Save icon and simply close the form. Does it ask you to save? If so, say yes and then open the form to see if the control is moved or not.

Posted by: RCDAWebmaster Feb 14 2020, 01:08 PM

I went to layout view, moved a button, closed the form, was asked to save, said yes. When I open the form the button was where I put it. I then noticed that that the form itself is not as wide as it was as there is no space between the tab control and the edge of the form as there was a moment ago. I resized the form, closed and saved it, but it keeps auto sizing. out the space. maybe i need a hidden control to force space?

Posted by: theDBguy Feb 14 2020, 01:16 PM

Play with your form's AutoResize setting. Try setting it to No.

Posted by: RCDAWebmaster Feb 14 2020, 01:21 PM

I set auto resizing to no and now changes to the width in design view do not show in form view and I can't resize the form at all.

Posted by: RCDAWebmaster Feb 14 2020, 01:24 PM

I figured it out i think. I had the border style set to none to get rid of the form title bar. I had to set the border to sizable, drag the form wider and then set the border style back to none.

Posted by: theDBguy Feb 14 2020, 01:25 PM

Hi. Glad to hear you got it sorted out. Cheers!

Posted by: RCDAWebmaster Feb 14 2020, 01:27 PM

Me too :-)