Solved

Menus at runtime

Posted on 2001-06-11
2
203 Views
Last Modified: 2010-05-02
Objective:
My app can have multiple dsn's which I store in an Oracle table. I want to have a menu (Databases)that when clicked it looks something like this:
   DATABASES
      (DSN NAME) -> tables -> (list tables for that DSN)
                             -> stored procedures -> (list sp's)

      (DSN NAME) -> tables -> (list tables for that DSN)
                             -> stored procedures -> (list sp's)

can anyone give me an example in code (not using API's) on how to do this at runtime based on the DSN's I have listed in my table?

Environ: VB6 (sp5) , NT4 WKST, ADO 2.6

Thanks.
0
Comment
Question by:stacey14
2 Comments
 
LVL 5

Expert Comment

by:AndrewDev
ID: 6176988
These links should help. Having got your DSN list it will depend what your database is I have provided some examples of different types of database access.


List All Installed System DSNs
http://www.freevbcode.com/ShowCode.Asp?ID=302

Access Database Front End
http://www.freevbcode.com/ShowCode.Asp?ID=978

Access Database Viewer and Tools, Including Excel Exporter
http://www.freevbcode.com/ShowCode.Asp?ID=2182

SQL Server Database Explorer
http://www.freevbcode.com/ShowCode.Asp?ID=1761

Hope this helps
Regards
Andrew
0
 
LVL 7

Accepted Solution

by:
Z_Beeblebrox earned 75 total points
ID: 6177025
To do dynamic menus, use menu arrays. Create one base menu item with index 0. Then do load basemenuname(1) to create a new menu. You can then set the attributes of this menu item. Load addiitonal menu items as needed.

Zaphod.
0

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Write data from SQL to CSV file - position 1 60
How to debug this code 7 61
Put text in a picture ASP.NET C# 2 56
Sending a email via excel using vba 6 82
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question