Originally posted by jesus4u
[B]I am writing this search routine to find image files and display the filename in a list view. The code below to search is on frmSearch and the listview is on another form called frmMain.

The error I am getting is "wrong number of arguments or invalid property assignment" and it focuses on this:

lngCount = rs.Fields("Cat", "Title", "FileExtension", "FileName")

What am I doing wrong?
rs.fields("cat") thats all you can do
fields only takes one parameter