If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Creating a button in a form that will open another and close itsel
Hi can somebody tell me how I can create a button in a form that will open
another and close the form in which the button was pressed. Similar to the reguler next screen button you find in most software? |
#2
|
|||
|
|||
Simply create a form using form wizard
1) select button from toolbar 2) You will be able view command as openform 3) select form that need to be opened However, while view code: Be sure insert DoCmd.Close before DoCmd.OpenForm That will close main form and will open other form. I'm still not sure why would do that. Most program's preferences is to keep main form open. Anyways I hope that help! Phil "DaveC271" wrote in message ... Hi can somebody tell me how I can create a button in a form that will open another and close the form in which the button was pressed. Similar to the reguler next screen button you find in most software? |
#3
|
|||
|
|||
On Sat, 13 Nov 2004 17:14:05 -0800, DaveC271 wrote:
Hi can somebody tell me how I can create a button in a form that will open another and close the form in which the button was pressed. Similar to the reguler next screen button you find in most software? After you add a command button to the form, code it's click event: DoCmd.OpenForm "OtherFormName" DoCmd.Close acForm, Me.Name -- Fred Please only reply to this newsgroup. I do not reply to personal email. |
Thread Tools | |
Display Modes | |
|
|