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!

Close a Data Access Page Using a Command Button

Status
Not open for further replies.

hcisteve

Technical User
Jan 12, 2005
47
US
I am new to using data access pages. I want to use the page for data entry. But I want people to only enter one set of data. I set the command button to save the data but I don't know how to get it to close the page or go to an different page with a message on it.
 
But I want people to only enter one set of data.

What you could do is just manipulate the navigation bar. Set everything equal to False except 'New' and 'Save'. Do this by right-clicking on the Navigation bar in design view and clicking Propertes. You'll see a slew of the buttons all in a row.

As far as closing the page- you can add buttons or links. Just activate them with a Sub in VBScript or a Function in Javascript:


[red]An Alternative[/red]:

It sounds like a simple alernative would be to create your front-end in a web-based form and your back-end in Access. You could still use your daps, too.

That way, upon submitting a form- your user could be redirected to a new form or a different page.

I find that DAPS are only good for editing records via the web and viewing them.

For starters, refer to this link for creating forms:

You'll also need to know how to insert form information into an Access database, refer to these pages:

Forms:
Forms to Database:
Via FrontPage:

The above is only a suggestion. I ran into too many problems with daps back in the day and I will never use/create another one.

FYI-
They are slow and volatile. I think a dap will only handle some five concurrent users before it lags (or even crashes).
 
Hello,

Does anyone know how to write the vbscript syntax to make a command button close a data access pages and open up a main menu form in access.

Thank you in advance.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top