Advertisement

[x]
Attachment Details

Create a Switchboard in Access 2003

[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.0
I am attempting to create a switchboard in Access 2003.  
This is what I have done so far:
I have manually created a table [ObjectList] in my Access database which includes a column for ObjectID [auto number, primary key], ObjectTitle [form or report title], and ObjectType [Form or Report].  


I then manually created a form where I added a Combo Box to the form and a Command button.  For the Combo Box, I select "I want the combo box to look up the values in a table or query", select the ObjectTitle and ObjectType fields from the ObjectList table.  
The Command Button Wizard walked me through choosing a catagory and Action [I chose Form Operations -> Open a Form].  
The Command Button then asks you to choose a form from a list, which I did.  
I then chose to "Open the form and show all the records."
I then elected to show text on my Command Button, i.e. "OPEN", and named the Command Button "OpenForm".  The Command Button works for the single form I selected during the above process.

Now I want to edit this Command Button so that it opens any of the forms available for selection from the combo box, so I access the Properties on the Command Button -> go to Event tab-> from "On Click" line, I click on the elipsis next to Event Procedure.  This opens the code window:

Private Sub OPEN_Click()
On Error GoTo Err_OPEN_Click

    Dim stDocName As String
    Dim stLinkCriteria As String

    stDocName = "ADD X"
    DoCmd.OpenForm stDocName, , , stLinkCriteria

Exit_OPEN_Click:
    Exit Sub

Err_OPEN_Click:
    MsgBox Err.Description
    Resume Exit_OPEN_Click
   
End Sub

I thought I would be able to edit the command button to open any of the forms or reports listed in the combo box, where the data in the combo box comes from the ObjectList table.  Am I wrong, or just in over my head?  


 
 
Related Solutions
Related Solutions
 
Loading Advertisement...
 

Rank: Sage

Assisted Solution by LSMConsulting:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Accepted Solution by rrtraverse:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
Loading Advertisement...
20080924-EE-VQP-41 / EE_QW_2_20070628