Here as a new wizard you can add to your collection.  This is a 
DFunction wizard that you can use to create DLookUp's, DSum's, etc.  
Once the wizard creates the DFunction, you can choose to copy it to 
the clipboard, then paste it in your favorite query.

This wizard automatically figures out when you need to have weird 
criteria like...

DLookUp("[ID]", "MyTable", "[ID] = '" & Forms!MyForm!MyField & "'")

...as well as other delimiter dilemmas.

To use this wizard, copy DOMAIN.MDA to your Access directory, (assume 
it's called C:\ACCESS.)  Add the following setting to the [Libraries] 
section in your MSACCESS.INI file...

c:\access\domain.mda=ro

If you don't have one, add the following section...

[Menu Add-Ins]

...and add the following entry in this new section...

&Domain Function Wizard==StartDomainWizard()

(the "==" is intentional.)  When you re-start Access and open a 
database, the choice you added above will appear in the Help menu.  
Choose it and off you go...

Disclaimer: this is not supported by Microsoft.
