Autosize or Save Query Column Width?

NoSmoke

Board Regular
Joined
Dec 1, 2012
Messages
114
The table produced by a query (Access 2010) seems to default to preset column widths which then have to be manually adjusted to display wide field contents. If the query is saved however and recalled, the adjusted column widths are not preserved. Was wondering if there is any way of saving the column widths (or make them autosize)?

Thanks for any help...
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
You can change a table setting to accomplish this. With the cursor in any cell in the table,
Right-Click / Table / External Data Properties
In the small window that appears, remove the check mark to the left of the words "Adjust column width", then click OK
Now when you refresh the query the column widths will stay at whatever width you manually set them at.
Be sure to Save the file after you've changed this table setting.
 
Upvote 0
Hey, thanks Ron. What you suggested didn't work exactly (right click doesn't produce the same result - maybe it's the Access version?) but right-click on the table column name gives Field Width/Best Fit (or enter the column width). After Save, displaying the table or a query from the table preserves the column widths!
 
Upvote 0

Forum statistics

Threads
1,221,466
Messages
6,160,011
Members
451,611
Latest member
PattiButche

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top