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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access 2003 and Word 2003 mail merge problem

Status
Not open for further replies.

megabyte214

Programmer
Nov 7, 2001
40
US
I have some Access queries that I am using with Word Mail Merge. All the queries work great with mail merge except for the ones where there is a “*”. When I change the “*” to a “%” the mail merge then works, but then the query will not run in Access.

For example:

This does not work with Access, but works in Word mail merge:
Code:
…WHERE ((([Students].StudentID) Like "%1"))
This works with Access, but does not work in Word mail merge:
Code:
…WHERE ((([Students].StudentID) Like "*1"))
I am trying to figure out a way that the same query will run in both Access and Word without making two copies of the query (which I am currently doing)

Thanks in advance for any suggestions.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top