Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SQL Server Connect Port

Status
Not open for further replies.

zqi

Programmer
May 8, 2002
10
0
0
US
Hi, All,

I need a kind solution to put the SQL Server Port number (2434, not default 1433) in my coding:

Set dbCurrent = CurrentDb
For i = 0 To dbCurrent.TableDefs.Count - 1
Set tmptable = dbCurrent.TableDefs(i)
If tmptable.Connect <> "" Then
tmptable.Connect = "ODBC;Driver=SQL Server;UID=" & ctltxtUsername & ";PWD=" & ctltxtPassword & ";Server=" & ctltxtServer &_
";Database=" & ctltxtDatabase
tmptable.RefreshLink
End If
DoEvents
Next i

Since the network guy move the SQL Server 2000 DB (back end) to a new server and assign a new port number. How can i change my Access fromt end to link it? Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top