Hi All, I haven't posted in a while so I thought I'd bug you guys. I have data in an Excel document (from SAP) that I send to MSSQL and it works great when I'm at work. The problem is when I travel it's a hit/miss sort of thing for getting the information updated. Sometimes I'll get around 20% of the data loaded when I get a "Not Responding" message. I'm using ADO to load the data. Not sure what would be helpful but here is what I'm using to connect to my database. Like I said this works great in the office but not so hot when I have to VPN. Any thoughts/words of wisdom would be great! Thanks
I posted here because I'm hoping there may be a better way to do this using Access then linking it to MSSQL (but I have no clue).
Option Explicit
Global Const strconn As String = "Driver={SQL Native Client};Server=xxx;Database=xxx;Uid=UserID;Pwd=Password;ConnectionTimeoout=60"
Global cnt As New ADODB.Connection
Global rst As New ADODB.Recordset
Global strSQL As String
Sub Send_WeekMatmasSQL_Data()
Dim cell As Range
Dim MyRange As Range
Dim lrow As Long
Dim strplant As String
Dim strmaterial As String
Dim strmaterialtype As String
Dim strprofitcenter As String
Dim strmrpcontroller As String
Dim strproctype As String
Dim strabc As String
Dim stryearweeknumber As String
Dim lngstock As String
Dim dblcost As Double
Dim lngcount As String
Dim n As Long
Dim lngnumfiles As String
Dim dblpercentdone As Double
Dim strweek As String
On Error GoTo ErrExit
cnt.Open (strconn)
I posted here because I'm hoping there may be a better way to do this using Access then linking it to MSSQL (but I have no clue).
Option Explicit
Global Const strconn As String = "Driver={SQL Native Client};Server=xxx;Database=xxx;Uid=UserID;Pwd=Password;ConnectionTimeoout=60"
Global cnt As New ADODB.Connection
Global rst As New ADODB.Recordset
Global strSQL As String
Sub Send_WeekMatmasSQL_Data()
Dim cell As Range
Dim MyRange As Range
Dim lrow As Long
Dim strplant As String
Dim strmaterial As String
Dim strmaterialtype As String
Dim strprofitcenter As String
Dim strmrpcontroller As String
Dim strproctype As String
Dim strabc As String
Dim stryearweeknumber As String
Dim lngstock As String
Dim dblcost As Double
Dim lngcount As String
Dim n As Long
Dim lngnumfiles As String
Dim dblpercentdone As Double
Dim strweek As String
On Error GoTo ErrExit
cnt.Open (strconn)
Last edited: