Private Sub cmdQry_Click()
If IsNull(txtvessel) Or txtbl_no = "" Then
W1.Document.Form1.vessel.value = ""
Else
W1.Document.Form1.vessel.value = Me.txtvessel
End If
If IsNull(txtvoyage) Or txtbl_no = "" Then
W1.Document.Form1.voyage.value = ""
Else
W1.Document.Form1.voyage.value = Me.txtvoyage
End If
If IsNull(txtbl_no) Or txtbl_no = "" Then
MsgBox "必须输入提单号!", vbCritical, Me.Caption
txtbl_no.SetFocus
Else
W1.Document.Form1.bl_no.value = Me.txtbl_no
W1.Document.Form1.search.Click
End If
End Sub
Private Sub Form_Load()
W1.Navigate "http://www.portinfo.net.cn/spinfo/premanifest.php";
End Sub
Private Sub W1_DownloadComplete()
cmdQry.Enabled = True
On Error GoTo exitsub
Dim txtData As String
txtData = Me.W1.Object.Document.body.innertext
If InStr(txtData, "查询结果") > 0 Then
Dim n1 As Integer
Dim n2 As Integer