473,406 Members | 2,847 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

using CommonDialog to select diffrent database ??

Hello ;

i'm developing a vb6 form that can be something like a reader , that read different databases .... anyway i used Common Dialog to select what database i would like to open ,but my problem is that even though i select a database i only get the one i have in a module



this is the browse button code :
Expand|Select|Wrap|Line Numbers
  1. Private Sub Command1_Click() 'dialog botton
  2. CommonDialog1.ShowOpen
  3. 'CommonDialog1.Filter = "*.txt|Text Files|*.*|All Files"
  4. 'MsgBox "You have choose" & CommonDialog1.FileName
  5.  
  6. liaison 'this is a module
  7. Do Until rstest.EOF
  8.    Me.Combo1.AddItem rstest.Fields(0)
  9.    rstest.MoveNext
  10.    Loop
  11.  
  12. End Sub
  13.  
this is how my software looks like "just for test" :


so here is what i want to do :
when i click in browse button i select a database .when i click browse button again i select different database etc .....
this is a very important problem for me that i need to be solved ... if you didn't understand what i want to say i be more happy to explain more ...
is this possible ??
Mar 1 '16 #1
0 1201

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Mikko Pulkkinen | last post by:
Hi, I'm trying to use Crystal Reports to generate reports from an Access database. I'm using VS2003 and C#. I need to select the database the report uses as data source at runtime. The database...
2
by: Alexander Prozor | last post by:
Hello, does anybody using system 'Select Users, Computers or Groups' dialog box to searching in LDAP ? I use my own dialog for this purpose but using the system one is much better for me.... ...
1
by: intscript | last post by:
Hi everyone Is is possible to retrieve data using multiple select. Here is my SQL code: select sum(nPassengers) Planned, Actual, (sum(Planned) - Actual) Variance from ( select iDeptCode,...
2
by: Steve Richter | last post by:
what is the best way to use DataGridView to view data from large database tables? Where the sql select statement might return millions of rows? string connectionString =...
0
by: Josetta | last post by:
I've looked around here to see if this can be done, but haven't found the answer. Here is what I want to do... I have a two databases -- One for Sales and one for Operations. These are used by...
1
by: lawardy | last post by:
Hi, I'm quite new with Reporting server 2005. I'm wondering if there is a way to write a select query that will get the data from 2 diffrent tables located in 2 diffrent database box. for...
5
by: Edwin Smith | last post by:
Hello: I'm using VS2005 with an ODBC database. I am trying to add a Dialog to an existing Database application to allow the user to select the database. We have 2 different databases with the...
1
by: linly | last post by:
Using the Simple perl database in Bytes, I have defined my database as follows: %fields = ( ID => , UserName => , Password => , Level => , FullName => , Email => ,...
0
by: ankit chauhan | last post by:
If I am using the select , option tag in select box . option tag not support margin and padding in chrome .. Please tell me that solution ....
0
by: dbadmin | last post by:
In a perl dbi script, I create a db2 temp table on database A using "as select" to define columns. Then, I need to redefine the temp table on another database B. Does any of you have any hints on how...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.