Access 2007 sql editor
There are many tools and ways better ways to do SQL editing  for Access 2007 other then using msword , at least i would use Notepad++

below are tools i used and are good 


RazorSQL
SQuirreL SQL


here is a 2 post1 and post2 in Stackoverflow similar to your issue

but if you want my opinion to this problem, the best thing i suggest is to use SSMS and add a linked server to your Access file, i like SSMS