I suspect you're talking about doing this in Word, which means you're far
more likely to get an answer in a newsgroup related to Word. This newsgroup
is for questions about using queries in Access, the database product that's
part of Office Professional.
However, the answer to your question is yes, it's possible.