In an application, I'm creating a QueryDef on the fly, then use
DoCmd.OpenQuery to display the results.
If the user changes column width, for example, s/he is prompted when
closing whether s/he wants to save the query. This doesn't work
anyway, since it's just a temporary QueryDef, but I'd like to avoid the
whole Save/Yes/No/Cancel dialog box entirely - it's just an annoying
nuisance that could confuse some.
The Updatable property of a QueryDef would seem to be a logical
candidate, but apparently you can only read this property, not set it,
and the default for this property is True, i.e., the QueryDef can be
changed.
Can anyone suggest either a way to set the Updatable property to False,
or in the alternative, intercept this dialog box and bypass it
entirely?
Thanks!
Larry Schmidt