Hi all,
I use the following loop to display all the links to the files matching the search string entered by the user.
*******************************
Dim objFile
For Each objFile in objFolder.Files
'Print out the name
If InStr(1, objFile, strSearch, 1) Then
Response.Write "<L1><A HREF=""
'Response.Write objFile.Name & "<BR>"
End If
Next
***************************
It works perfect, But i want to display a message when there is no match saying "No records were found"
I am not sure how to do that.
Any Suggestions.
VJ
I use the following loop to display all the links to the files matching the search string entered by the user.
*******************************
Dim objFile
For Each objFile in objFolder.Files
'Print out the name
If InStr(1, objFile, strSearch, 1) Then
Response.Write "<L1><A HREF=""
'Response.Write objFile.Name & "<BR>"
End If
Next
***************************
It works perfect, But i want to display a message when there is no match saying "No records were found"
I am not sure how to do that.
Any Suggestions.
VJ