Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Marek wrote ...
in my module i want to have variable with connection parameters for example i want to once describe this variable somewhere in module cons = "provider=Microsoft.Jet.OLEDB.4.0;" & _ "data source=db.mdb;" and after that i simply want to use this string variable in each sub maybe i must to use constants ? Sure, that's what I'd do: Private Const CONN_STRING As String = "" & _ "provider=Microsoft.Jet.OLEDB.4.0;" & _ "data source=db.mdb;" although it's unlikely to be needed by multiple subs e.g. if you have a property that supplies the ADO Connection object. Jamie. -- |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
ADODB Connection | Excel Worksheet Functions | |||
Trying to simulate 2 separate users in connection with a Share Wor | Excel Discussion (Misc queries) | |||
Trying to simulate 2 separate users in connection with a Share Wor | Excel Discussion (Misc queries) | |||
Virus - importing excel via adodb connection | Excel Programming | |||
ADODB Connection to Access | Excel Programming |