Results 1 to 4 of 4
  1. #1
    Ranger7913 is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Oct 2014
    Posts
    18

    User formatted autonumber question


    I am creating a database to produce reports, invoices, track clients, etc. It will essentially be used to create an investigative report. I created a "File Number" field set as an autonumber so each file would have a new file number. In the properties of this field, I changed the format to indicate "1823-0"000. This would allow each file number generated to have "1823-0" along with the auto generated number now being 3 digits. The problem I have is in establishing relationships in related tables. The data in the other tables recognizes the field as text so it wont allow me to link it due to incompatible fields. Any suggestions? Also, will this affect any other aspects of my database (running queries). My goal is to link multiple tables (clients, customers, details, exhibits, etc) in order to produce a report. I enjoy this site as it has helped me on many occasions. Thanks

  2. #2
    JamesDeckert is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Jul 2015
    Location
    Salina, KS
    Posts
    262
    Why do you want 1823-? in front of the number?
    You could append this in any form which displays the number so the number in the table is not changed.
    There may be a better way, but this is certainly an option.

  3. #3
    Ranger7913 is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Oct 2014
    Posts
    18
    James. Thanks for your response. 1823 is related to my business. I want in included in the file number. The actual preference is to have it generate something like 1823-month(02)-4 digit file number. If you have any ideas how to accomplish that it would be greatly appreciated. I will do some research on appending info. I am still learning a lot of the aspects of access. Thanks again

  4. #4
    ssanfu is offline Master of Nothing
    Windows XP Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    As James said, that should be "calculated" in a query.

    I created a "File Number" field set as an autonumber so each file would have a new file number. In the properties of this field, I changed the format to indicate "1823-0"000.
    You are using the autonumber field wrong. You should read these sites:

    Autonumbers--What they are NOT and What They Are
    http://www.utteraccess.com/wiki/index.php/Autonumbers

    Microsoft Access Tables: Primary Key Tips and Techniques
    http://www.fmsinc.com/free/newtips/primarykey.asp

    Use Autonumbers properly
    http://access.mvps.org/access/general/gen0025.htm

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

Similar Threads

  1. Question about Autonumber
    By Reaper in forum Programming
    Replies: 13
    Last Post: 01-01-2015, 09:46 PM
  2. Currency formatted Text Box Question
    By data808 in forum Access
    Replies: 4
    Last Post: 05-09-2014, 12:50 PM
  3. AutoNumber Question
    By Rick5150 in forum Access
    Replies: 9
    Last Post: 10-16-2011, 01:43 PM
  4. Formatted AutoNumber field and combo boxes
    By neo651 in forum Access
    Replies: 1
    Last Post: 08-19-2011, 02:27 PM
  5. Complex VBA Autonumber question
    By Lockrin in forum Access
    Replies: 2
    Last Post: 04-13-2010, 01:25 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