Not sure what's causing the problem, but here's a sequence that addresses a
number of issues.
1. Uncheck the boxes under:
Tools | Options | General | Name AutoCorrect
In Access 2007, it's:
Office Button | Access Options | Current Database | Name AutoCorrect
Explanation of why:
http://allenbrowne.com/bug-03.html
2. Compact the database to get rid of this junk:
Tools | Database Utilities | Compact/Repair
or in Access 2007:
Office Button | Manage | Compact/Repair
3. Close Access. Make a backup copy of the file. Decompile the database by
entering something like this at the command prompt while Access is not
running. It is all one line, and include the quotes:
"c:\Program Files\Microsoft office\office\msaccess.exe" /decompile
"c:\MyPath\MyDatabase.mdb"
4. Open Access (holding down the Shift key if you have any startup code),
and compact again.
5. Open a code window.
Choose References from the Tools menu.
Uncheck any references you do not need.
For a list of the ones you typically need in your version of Access, see:
http://allenbrowne.com/ser-38.html
6. Still in the code window, choose Compile from the Debug menu.
Fix any errors, and repeat until it compiles okay.
7. Open your query in SQL View.
Copy the query statement out to (say) Notepad.
Close. Then delete the query.
Compact again.
Create a new query.
Paste the query statement from Notepad into SQL View.
Switch to Design view, and tidy it up.
BTW, after setting a property, *always* press Enter before you do anything
else. Do not leave the cursor in the same property and try to test the query
or close the properties box, or ...
Let us know how you went.
--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users -
http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
"mnjkahn via AccessMonster.com" <u27308@uwewrote in message
news:7156d89e81930@uwe...
I'm running Access 2003, modifying a query that has over 45 fields. When
I
right click on the field name in Query Design View, and then click Build,
Access crashes before the Build window appears. It doesn't happen every
time,
and using the Zoom window works fine. It appears that it only happens
when I
want to modify an existing expression. This continues to happen even
after
the database is repaired and reopened. Anyone have any suggestions?