D
DS
I keep getting this Error...Object Variable or With Variable Not Set......
Could it be a Timing Issue???....Or?
I'm simply looking to see if I have an Actve Internet connection. And if
not then form closes.
Private Sub Form_Open(Cancel As Integer)
On Error GoTo Err_Form_Open
Dim WinHttpReq As WinHttp.WinHttpRequest
Dim postVars As String
WinHttpReq.Open "POST", "https://demo.payjunction.com/quick_link", False
WinHttpReq.SetRequestHeader "Content-Type",
"application/x-www-form-urlencoded"
WinHttpReq.Send postVars
Set WinHttpReq = New WinHttpRequest
postVars = ""
Me.TxtTranType = "AUTHORIZATION_CAPTURE"
Me.TxtSwipe.SetFocus
Exit_Form_Open:
Exit Sub
Err_Form_Open:
MsgBox Err.Description
DoCmd.Close acForm, "frmPadPreAuth"
Resume Exit_Form_Open
End Sub
Any help appreciated. Thanks.
DS
Could it be a Timing Issue???....Or?
I'm simply looking to see if I have an Actve Internet connection. And if
not then form closes.
Private Sub Form_Open(Cancel As Integer)
On Error GoTo Err_Form_Open
Dim WinHttpReq As WinHttp.WinHttpRequest
Dim postVars As String
WinHttpReq.Open "POST", "https://demo.payjunction.com/quick_link", False
WinHttpReq.SetRequestHeader "Content-Type",
"application/x-www-form-urlencoded"
WinHttpReq.Send postVars
Set WinHttpReq = New WinHttpRequest
postVars = ""
Me.TxtTranType = "AUTHORIZATION_CAPTURE"
Me.TxtSwipe.SetFocus
Exit_Form_Open:
Exit Sub
Err_Form_Open:
MsgBox Err.Description
DoCmd.Close acForm, "frmPadPreAuth"
Resume Exit_Form_Open
End Sub
Any help appreciated. Thanks.
DS