M
MadCrazyNewbie
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 ConnectNetworkLive As OLEDB.Connection
OLEDB.Connection = "\\Data01\Excellence.Net\NetworkLiveDB.MDB
Dim ConnectNetworkDeval As OLEDB.Connection
OLEDB.Connection = "\\Data01\Excellence.Net\NetworkDevDB.MDB
Dim ConnectLocal As OLEDB.Connection
OLEDB.Connection = "C:\Program Files\Ecellence.Net\LocalDB.MDB
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 ConnectNetworkLive As OLEDB.Connection
OLEDB.Connection = "\\Data01\Excellence.Net\NetworkLiveDB.MDB
Dim ConnectNetworkDeval As OLEDB.Connection
OLEDB.Connection = "\\Data01\Excellence.Net\NetworkDevDB.MDB
Dim ConnectLocal As OLEDB.Connection
OLEDB.Connection = "C:\Program Files\Ecellence.Net\LocalDB.MDB
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