Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
User control-retrievng (using) the database currently in use
Message
From
28/09/1999 16:45:26
John Vlahos
V I Software Solutions Design
Mississauga, Ontario, Canada
 
 
To
All
General information
Forum:
Visual Basic
Category:
Other
Title:
User control-retrievng (using) the database currently in use
Miscellaneous
Thread ID:
00270220
Message ID:
00270220
Views:
63
Hi

I have created to tables, Invoice and Customer, within a database named Elegant.

I have also designed to forms pertaining to each of these tables.

In each form I use the Data control within VB5 to link the form to the database, and I code the following in each forms load event:

Data1.DatabaseName= app.path & "\elegant.mdb"

I am also designing a user control which will be used to move though the tables, Next, Previous, Top, Bottom, Add, Remove, Edit, etc.

I would like to code this user control as generically as possible so that I may drop it in any similar form in any application and that it can perform the events regerdless of the database and table in use.
How can I access the database in use at run-time so I can replace the following type statements within my user control:

Elegant.Recordset.MoveNext
Reply
Map
View

Click here to load this message in the networking platform