Microsoft
Software
Hardware
Network
Question : variant for ServerName?
I do have a lot of forms where I always have following instructions
Set c = New ADODB.Connection
c.ConnectionString = "Driver={SQL Server};Server=Kongta_SQL;
Database=K
ongta"
c.Open
and I think, when I once will relocate the server/client to another network with different ServerNames, it's hard to change everywhere the ServerName & Database. I thought by placing at the top of the form
Dim Srv as Variant
Set Srv = Kongta_SQL
Set c = New ADODB.Connection
c.ConnectionString = "Driver={SQL Server};Server=Srv;Databas
e=Kongta"
c.Open
would make it more easy to change a possible ServerName but didn't work. Any idea what would be best? I do have SQL2008 backend and Access07.accdb frontEnd
thx
Kongta
Answer : variant for ServerName?
Dim Srv as Variant
Srv = "Kongta_SQL"
Set c = New ADODB.Connection
c.ConnectionString = "Driver={SQL Server};Server=" & Srv &";Database=Kongta"
c.Open
Random Solutions
W7 - Give limited users rights to install fonts
How do I disable the login prompt of IIS application
how to get execution path in c#
Powerpoint Crashes when Formating graphs
error with web site when it was moved from server 2003 to 2008
Toshiba M115-S1061 with windows XP that has a hoarse, husky, scattered sound
Removing apostrohies from exported excel cells
Access Form Validation
cannot connect new client to SBS 2008 server with launcher.exe
Vista Offline files 'On Slow Networks Automatically work offline' greyed out