Solved

How to change column width and have Access accept it?

Posted on 2014-01-18
10
2,030 Views
Last Modified: 2014-01-19
I've changed the column width of a table field to 20.375, but Access keeps changing it to 20.3796. How to specify the column width I want and have Access not change it?
0
Comment
Question by:Barbara69
  • 4
  • 2
  • 2
  • +2
10 Comments
 
LVL 119

Expert Comment

by:Rey Obrero
Comment Utility
maybe you mean a control in a form is what you are referring to?

a visual of your form will help, upload a copy of the db
0
 

Author Comment

by:Barbara69
Comment Utility
No, it's a table.
0
 
LVL 74

Accepted Solution

by:
Jeffrey Coachman earned 500 total points
Comment Utility
I could not recreate your issue.
When I do this in Access 2010 (on a table column), it remains that same size.

So if you ultimate need is to figure this out for a table then continue working with capricorn1.


An alternative could be to instead create a continuous form (and move all the controls close to each other, so that it looks like a datasheet table), this should not happen.
(You could try making a datasheet view form, but my fear is that the same issue may arise)

Another advantage of doing this (Creating a Form for users to use) is that you will now have the power of form properties to control how the user interacts with the data and how the data is presented.
For example, you can prevent Deletions Additions or Edits to the data.  You can also format the fields individually, apply conditional formats, use VBA automation add graphics,...etc.
...Or you can simply set it up to act as a normal table.  ;-)

The reasoning here is that there is rarely a time when a user needs access to the raw table.  Because then they can do whatever they like (Change properties and data, ...etc)

sample attached, compare the form and the table.

JeffCoachman
Database53.mdb
0
 
LVL 119

Expert Comment

by:Rey Obrero
Comment Utility
@Barbara
this is the first time I've heard about <column width of a table field > ..

so a visual of your db will definitely help..  upload a copy of your db.


are you referring to a lookup property of a field in a table?
0
 
LVL 119

Expert Comment

by:Rey Obrero
Comment Utility
x
0
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 

Author Comment

by:Barbara69
Comment Utility
Jeff,

I see what you're saying. When I opened your table and changed the column width to 20.375, Access changed it to 20.3796, so maybe it's an issue on my computer. Thanks for your assistance.
0
 
LVL 49

Expert Comment

by:Gustav Brock
Comment Utility
Nothing to do about it. It is a rounding issue.

Width is stored in twips, and that is converted to inches or centimeters in the user interface.

/gustav
0
 
LVL 119

Expert Comment

by:Rey Obrero
Comment Utility
ok. my apology.. I see what you meant, in A2010.
I never really make any use of these table properties in my applications, for the simple reason that I never expose any of the tables to the users, in all applications I created.

Records/data are viewed/entered/edited using Forms/ reports  never, never from the tables.
0
 
LVL 49

Expert Comment

by:Gustav Brock
Comment Utility
The behaviour exists for datasheetviews as well.

/gustav
0
 
LVL 65

Expert Comment

by:Jim Horn
Comment Utility
>I've changed the column width of a table field to 20.375
fyi Access (or SQL, or Oracle, ...) tables are not optimized to cosmetically display data, only to store data in certain formats and constraints.

Forms are optimized to cosmetically display data.

So if you really really really need to view a column with a 20.375 inch width, I recommend building a form with a control this wide, and viewing the form instead of the table.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

In the previous article, Using a Critera Form to Filter Records (http://www.experts-exchange.com/A_6069.html), the form was basically a data container storing user input, which queries and other database objects could read. The form had to remain op…
In Debugging – Part 1, you learned the basics of the debugging process. You learned how to avoid bugs, as well as how to utilize the Immediate window in the debugging process. This article takes things to the next level by showing you how you can us…
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now