Solved

Menus at runtime

Posted on 2001-06-11
2
200 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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…

760 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now