hello
I have VBA that deletes a query, if it exists, then creates a new query def using code like...
Set MyQueryDef = CurrentDb.CreateQueryDef(strQryName, strSQL)
DoCmd.OpenQuery strQryName
The query has many columns, so I change the query layout to make very narrow columns. But when the query is deleted then recreated, I have to readjust the layout every time.
Here is my question. Is there a way to 'preserve' the query layout so that it stays the same every time?
I have VBA that deletes a query, if it exists, then creates a new query def using code like...
Set MyQueryDef = CurrentDb.CreateQueryDef(strQryName, strSQL)
DoCmd.OpenQuery strQryName
The query has many columns, so I change the query layout to make very narrow columns. But when the query is deleted then recreated, I have to readjust the layout every time.
Here is my question. Is there a way to 'preserve' the query layout so that it stays the same every time?