Hey group,
Sorry to bother you all again but ............ I did start this a while ago,
and Cor pointed me in the right direction but i`ve forgot as more important
things needed doing @ work.
So here Goes,
On my project I have a combobox on start up with:
Live - Network
Development - Network
Live - Local (Read-Only)
When I select one I want the appropriate Connection string to be passed to
my project.
Is this correct i say on my Login form have for example:
Dim ConnectNetworkL ive As OLEDB.Connectio n
OLEDB.Connectio n = "\\Data01\Excel lence.Net\Netwo rkLiveDB.MDB
Dim ConnectNetworkD eval As OLEDB.Connectio n
OLEDB.Connectio n = "\\Data01\Excel lence.Net\Netwo rkDevDB.MDB
Dim ConnectLocal As OLEDB.Connectio n
OLEDB.Connectio n = "C:\Program Files\Ecellence .Net\LocalDB.MD B
Now I guess that when i select on from my ComboBox I need to use one of the
above Connection strings and Pass that to a value somewhere along the line?
My Questions: How would i pass the above to a string (If that right) and as
I have several Data Connectors on my Project - I guess i need to get rid of
them, but how would i tell my data Adapters to use the Connection string
selected, if you get what i mean?
Many Thanks
MCN
Sorry to bother you all again but ............ I did start this a while ago,
and Cor pointed me in the right direction but i`ve forgot as more important
things needed doing @ work.
So here Goes,
On my project I have a combobox on start up with:
Live - Network
Development - Network
Live - Local (Read-Only)
When I select one I want the appropriate Connection string to be passed to
my project.
Is this correct i say on my Login form have for example:
Dim ConnectNetworkL ive As OLEDB.Connectio n
OLEDB.Connectio n = "\\Data01\Excel lence.Net\Netwo rkLiveDB.MDB
Dim ConnectNetworkD eval As OLEDB.Connectio n
OLEDB.Connectio n = "\\Data01\Excel lence.Net\Netwo rkDevDB.MDB
Dim ConnectLocal As OLEDB.Connectio n
OLEDB.Connectio n = "C:\Program Files\Ecellence .Net\LocalDB.MD B
Now I guess that when i select on from my ComboBox I need to use one of the
above Connection strings and Pass that to a value somewhere along the line?
My Questions: How would i pass the above to a string (If that right) and as
I have several Data Connectors on my Project - I guess i need to get rid of
them, but how would i tell my data Adapters to use the Connection string
selected, if you get what i mean?
Many Thanks
MCN
Comment