Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

layout of query question

Status
Not open for further replies.

teach314

Technical User
Jul 29, 2011
183
CA
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?
 
Why not simply modify the SQL of the query ?

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
hi PHV

I'm missing something here. What SQL commands can be used to adjust the column widths of the query output?

Thanks
 
My point was: why not modify the SQL of the query instead of deleting and recreating ?

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top