Results 1 to 10 of 10
  1. #1
    escapades_access is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Mar 2011
    Location
    Lake Tahoe, CA
    Posts
    10

    Allow a period in a table field name

    I would like to enter data for every meter and half meter along a transect but ACCESS won't allow a period as a field name/column header. I just need 0, 0.5, 1, 1.5, 2, 2.5 and so on. Any way to bypass this weird rule in ACCESS??



    Any help would be greatly appreciated. Thanks

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    I don't know of a way, but it doesn't seem weird to me. The period is used in table/field references, like TableName.FieldName, so a period in either name would be a problem. You can use an underscore: 1_5
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    Quote Originally Posted by pbaldy View Post
    a period in either name would be a problem.
    Paul, would the brace still stop it?
    Code:
    [table.name].[field]
    just curious. I didn't answer for a reason.

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Generally you would think that would work, but in my testing Access will not let you include a period in either a table or field name. It errors as soon as you try.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    Quote Originally Posted by pbaldy View Post
    Generally you would think that would work, but in my testing Access will not let you include a period in either a table or field name. It errors as soon as you try.
    Interesting. Thanks for the test. I figured you'd do it out of curiosity.

  6. #6
    escapades_access is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Mar 2011
    Location
    Lake Tahoe, CA
    Posts
    10
    Thanks guys, I suppose I'll use an underscore. Sure is inconvenient though. Thanks again, m

  7. #7
    craigcolahan is offline Novice
    Windows XP Access 2000
    Join Date
    Jul 2011
    Posts
    2
    escapades I completely agree. Why can we not use a period in data collection? How will a graph plot data without a period? One cannot plot a graph with underscores, that's completely stupid (and weird). I can't believe MicroSoft didn't think to allow scientific numbers with decimal places to be recorded in Access so data can be plotted graphically. Fail.

  8. #8
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    You can have periods in the data, just not in a field name.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  9. #9
    craigcolahan is offline Novice
    Windows XP Access 2000
    Join Date
    Jul 2011
    Posts
    2
    Quote Originally Posted by pbaldy View Post
    You can have periods in the data, just not in a field name.
    The inability of MS Access to allow a period within a field within a table, means that for example, multiple combo boxes within a Form cannot reference one single table.

    Working example: A student's science project. Different temperature readings for different cities over a 30 day period. It would be desirable for MS Access to allow periods (decimals) in fields within tables, so that one table could be constructed (containing a range of temperatures from say 0 to 50 in 0.1 steps) and the different cities within a form could reference this one table. But MS Access doesn't allow periods in fields. So as best as I can figure out, one has to type out 500 times for each city in the form, e.g. 0.1, 0.2, 0.3 etc...49.8, 49.9, 50.0!

    I will gladly eat humble pie if I'm shown how this process can be made simpler. Until such time, missed opportunity for MS Access and an epic fail in data collection for science investigation.

  10. #10
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Proper normalization would argue against having fields with values like that anyway (similar to having fields for January, February, etc). It would be pretty easy to add records with those values programmatically with a For/Next loop.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Help in Solving Warranty Period in Access
    By vdanelia in forum Access
    Replies: 4
    Last Post: 01-29-2011, 04:28 PM
  2. Replies: 5
    Last Post: 01-20-2011, 11:36 PM
  3. Count Items by Time Period
    By pawslover in forum Queries
    Replies: 1
    Last Post: 11-15-2010, 03:57 PM
  4. Selecting a corresponding table field based on text field.
    By michaeljohnh in forum Programming
    Replies: 5
    Last Post: 10-08-2010, 10:33 AM
  5. Replies: 4
    Last Post: 09-03-2009, 02:01 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums