Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Queries / May 2005

Tip: Looking for answers? Try searching our database.

How do I keep a renamed Access field from changing?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
PerryGill - 06 May 2005 21:50 GMT
I have renamed a field to "Jan-05". Everytime I save, close, and reopen the
query, the field name changes to "Jan-5"! How do I keep Access from removing
the 0?!
Sylvain Lafontaine - 06 May 2005 22:30 GMT
Wild guess: maybe the autocorrect is ON ?

Signature

Sylvain Lafontaine, ing.
MVP - Technologies Virtual-PC

>I have renamed a field to "Jan-05". Everytime I save, close, and reopen the
> query, the field name changes to "Jan-5"! How do I keep Access from
> removing
> the 0?!
Van T. Dinh - 07 May 2005 10:57 GMT
It looks to me that you are storing data in the Field name.  Do you have of
the Fields with similar name, e.g. "Feb-05"

If yes, storing data in the Field name is a no-go zone in Relational
Database Design Theory.  Database engines cannot process data in names so
you will have lot of problems later with this structure...

Signature

HTH
Van T. Dinh
MVP (Access)

> I have renamed a field to "Jan-05". Everytime I save, close, and reopen the
> query, the field name changes to "Jan-5"! How do I keep Access from removing
> the 0?!
John Vinson - 07 May 2005 23:37 GMT
>I have renamed a field to "Jan-05". Everytime I save, close, and reopen the
>query, the field name changes to "Jan-5"! How do I keep Access from removing
>the 0?!

Wups! Normalization Alarm Bells going off.

A field name should NEVER UNDER ANY CIRCUMSTANCES contain data. Any
table with a field named Jan-05 is *very* unlikely to be properly
normalized!

If your table is getting one field wider every month... it's not a
table; it's a spreadsheet. If you want spreadsheets, use Excel; if
you're using Access, consider a "tall thin" table with one record per
month, with a datefield.

That said - probably the suggestion of turning off Name Autocorrect in
the database's Tools... Options is the best bet.

                 John W. Vinson[MVP]    
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.