I am pretty new to VBA and I am trying to figure out how to reveal a hidden section of a form. Here is the explaination...
I have a textbox in the header section of a form that accepts an entry and a command button that places the value of that input into a query that populates the rest of the form controls based on the input. I hide the detailed area of the form with these textboxes in it and unhide them when the command button is clicked. I left the forms resize property enabled so only the header shows when it originally opens then when the command button is clicked I want it to resize to the full form with the query results in the detailed area.
My problem is that the header shows just like I want it but when I click the command button the detailed area is enabled but the form does not resize to show the information. How would I resize the form using code or any other method for that matter. Any help will be greatly appreciated.
Thanks,
I have a textbox in the header section of a form that accepts an entry and a command button that places the value of that input into a query that populates the rest of the form controls based on the input. I hide the detailed area of the form with these textboxes in it and unhide them when the command button is clicked. I left the forms resize property enabled so only the header shows when it originally opens then when the command button is clicked I want it to resize to the full form with the query results in the detailed area.
My problem is that the header shows just like I want it but when I click the command button the detailed area is enabled but the form does not resize to show the information. How would I resize the form using code or any other method for that matter. Any help will be greatly appreciated.
Thanks,