I urgently need your help.
I am trying to convert the following VB6 routine to VBScript:
----------------------------------
Dim Answer
If Trim(txtSearch.Text) = "" Then
Answer = MsgBox("Need String Search, Please", vbOKOnly + vbCritical, "Warning"
Exit Sub
End If
datPrimaryRS.RecordSource = "SELECT * FROM Catalog WHERE Author LIKE '%" & txtSearch.Text & "%'"
On Error Resume Next
datPrimaryRS.Refresh
datPrimaryRS.Recordset.MoveLast: datPrimaryRS.Recordset.MoveFirst
---------------------------------------
I would appreciate any and all suggestions.
Thanks
I am trying to convert the following VB6 routine to VBScript:
----------------------------------
Dim Answer
If Trim(txtSearch.Text) = "" Then
Answer = MsgBox("Need String Search, Please", vbOKOnly + vbCritical, "Warning"
Exit Sub
End If
datPrimaryRS.RecordSource = "SELECT * FROM Catalog WHERE Author LIKE '%" & txtSearch.Text & "%'"
On Error Resume Next
datPrimaryRS.Refresh
datPrimaryRS.Recordset.MoveLast: datPrimaryRS.Recordset.MoveFirst
---------------------------------------
I would appreciate any and all suggestions.
Thanks