Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

A quick an easy question (i hope) about adding new data 2

Status
Not open for further replies.

HandyAndy

Technical User
Jun 26, 2001
13
GB
Ok so i lied its 3 questions!

1)
How do i perform the same action as clicking the furthest right button on the navigation bar at the bnottom of the form. The add new data button is the one i mean. I would like to emulate the action that it does using a normal button.

2)
How do i hide that bar?

3)
How can i hide and show forms?

Sorry for the Newbie questions but thats what i am

Thanks
Handy Andy
 
1)
How do i perform the same action as clicking the furthest right button on the navigation bar at the bnottom of the form. The add new data button is the one i mean. I would like to emulate the action that it does using a normal button.

Create a new button and use the code assistant. The code is
docmd.gotorecord,,acNewRecord (I am not sure about the commas)
2)
How do i hide that bar?
Go into the design mode of the form and set "navigation buttons" to NO.
3)
How can i hide and show forms?
"Normally" you have a main switchboard form that opens forms on clicking on a button (docmd.openform "YourFormName")
Inside the form a button executes "docmd.close".

There are some exceptions (for performance reasons in networks for example) but you will need a couple of months before you arrive at this point.

Happy programming!
 
Andy

I think this is what you are after.

1. On the tool box, make sure that the wizards option is selected (the magic wand) and then add a command button. Select record operations and then add new record.

2. Hiding the navigation bar. Go to the form properties (click on the grey box in the left hand corner of the form when in design view and then right mouse click and slect properties). On the ALL all tab, select Navigtion Buttons and change to No. This will do the trick.

3. Can you be a bit more specific with what you need to do. If you need to open and close forms then you can add buttons using the wizard, Form Operations, Open Form/Close Form.

Hope this helps

Lloyd
 
thanks for your help
plz see my other thread
Tree view considerations
andy h
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top