Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using SPQuery to find a particular document in a specified format

Status
Not open for further replies.

nikhilparchure

Programmer
Oct 6, 2001
121
AU
Hello,

Can we use query to check if a document library or folder consist a file whose name is in particular format

eg: Below are the file name
abc 10 Oct 2007.doc
xyz 15 Nov 2007.ppt
xyz 15 Nov 2006.ppt

I would like to use SPQuery to find all documents that were prepared in 2007 (having 2007 in the file name). This should return two documents (abc 10 Oct 2007.doc,
xyz 15 Nov 2007.ppt)

Can we use SPquery to achieve this or is there a better way to do this ?

Regards
Nikhil Parchure
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top