Open Form Button

B

Byron

Larry,
One suggestion for doing what you are wanting to do is to
use a Select Case statement. Take a look in the help file
for more info on using this. Below is some code that you
could use:

Select Case Me.NameOfYourTextBox

Case "inv"
'open the Inventory form
Docmd.OpenForm "Inventory"
case "rep"
'open the Repair form
Docmd.OpenForm "Repair"
case else
'open some other form
Docmd.OpenForm "Menu"
End Select

I do have a question. Why not just create a button for
each of the opportunities that your users have. Each
button having a caption to indicate where the User would
be going?

Byron
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top