Results 1 to 7 of 7
  1. #1
    RustyRick is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Apr 2016
    Location
    NW Alberta
    Posts
    53

    Analyze Performance Tables

    When I run the "Analyze Performance" on my Tables I get a suggestion to change a Primary Key to "Long Integer".



    I have it as a number but I chose the Data TYPE to be "Short Text".

    1: Is that a correct suggestion?

    2: I can't find "Long Integer" in the Data Type. Does it mean "Large Number"?

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    You choose Number type then below in Field Size property select Long Integer

    But why not use autonumber type as primary key?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    RustyRick is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Apr 2016
    Location
    NW Alberta
    Posts
    53
    I have no clue why NOT to use Autonumber? I have 13 tables. and to use AutoNumber without a descriptive name, I thought confused me. Am I going down the wrong road?

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    Can give autonumber type field any name you want, for example: CustomerID_PK

    Then related Number type (LongInteger) foreign key field in dependent table (such as Invoices): CustomerID_Inv_FK
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    RustyRick is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Apr 2016
    Location
    NW Alberta
    Posts
    53
    Hmm Thanks I'll re-visit that. I'm too old to be doing this. i've forgotten so much. Thank you!!!

  6. #6
    RustyRick is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Apr 2016
    Location
    NW Alberta
    Posts
    53
    I guess I have about 7 tables with only 1 field. I did that so I can facilitate ComboBox drop down lists. So my PK was descriptive TEXT and "Short Text".

    The 7 tables with only 1 FIELD are the result of un-calculable combinations or variable of the data. I have spent days trying to figure a better SIMPLE way of covering that. But I see no option.

  7. #7
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    Okay, saving text instead of number key uses up more storage space and indexing on text field is slower than on number type but it will work.

    Numbers saved and treated as text will not sort properly. "10" will sort before "2" as opposed to 2 will sort before 10.

    Never too old to learn. Says one who returned to college at 45.

    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Replies: 2
    Last Post: 01-05-2019, 07:22 PM
  2. Analyze Data Fields Independently
    By roberth in forum Reports
    Replies: 1
    Last Post: 12-12-2014, 06:12 PM
  3. Analyze Access DB
    By Christian1977 in forum Access
    Replies: 2
    Last Post: 06-17-2013, 02:32 AM
  4. Can access analyze orders with a SKU list?
    By shubhamgandhi in forum Programming
    Replies: 3
    Last Post: 08-08-2011, 01:12 PM
  5. How to analyze holidays/weekends
    By Galio83 in forum Queries
    Replies: 0
    Last Post: 03-31-2011, 12:27 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