Page 2 of 2 FirstFirst 12
Results 16 to 21 of 21
  1. #16
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    I looked at your db.
    A minor thing, but having many tables with a field if "ID" can get confusing. I give a descriptive name to every field; "ServDescID" or "ServDescID_PK" gives you an idea what table the field is in just by the name, unlike "ID".

    You have the relationship backwards between "Pigtail" and "ServiceDescription".

    "ServiceDescription" is the one table and "Pigtail" is the many table.
    One record in table "ServiceDescription" can have many records in table "Pigtail", one record in table "Pigtail" has one record in table "ServiceDescription".
    The PK from table "ServiceDescription" should be saved in as a FK in table "Pigtail".



    You have a potential problem between tables "Pigtail" and "WireType". There are entries in table "Pigtail" that are not in table "WireType".
    I would have had an autonumber field as the PK. A text field will work, but if you decide to change "Tin" to "Only Tin", you will have to update two tables, then check the queries and forms to see if you hardcoded "Tin" into any column or control. I you use an autonumber field, it is just a matter of changing one entry in the table "WireType". I have an autonumber field is 99% of my tables (even if I don't use it).

  2. #17
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Steve, if Relational Integrity is on and Cascade Update is active, won't changing the PK from 'Tin' to 'Only Tin' reflect in the child records?
    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. #18
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    June, Yes, I agree.

    IF Relational Integrity is set AND Cascade Update is set; but they are not in this case. I don't use Cascade Updates/Deletes very much (maybe I should use them more); however, I was told/read (a long time ago) to use Cascade Updates/Deletes sparingly.

    I prefer to use autonumbers (if possible) to link tables; to me, I have more control. Control freak?? Yep!!

    (I do use Relational Integrity!)

  4. #19
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    I also don't rely on Cascade in my principle database (too many tables for one reason and Relational Integrity has limited applicability, mostly managed by code). My users have no need to modify PK and record deletion is allowed in only one situation and is only for a child table. However, have done some small dbs for others where I activated RI and Cascade features, one where absolutely no code (macro nor VBA) is implemented.
    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. #20
    bubba61 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Apr 2013
    Posts
    12
    Thanks Steve and June7, I really appreciate all of your help. Another question, if I decide to take this database online, does Access work well as an internet database? If so is it simple to do?

  6. #21
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Access alone cannot be web delivered. Need Sharepoint or web pages coded with something like ASP or ASP.Net or PHP that can interact with Access tables and maybe some other stuff I don't know about. Not simple.
    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.

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Multi-Field Search issues within Query
    By stiracerdude in forum Queries
    Replies: 3
    Last Post: 10-14-2012, 01:04 PM
  2. Multi-Field Search Query not working
    By omair1051992 in forum Queries
    Replies: 16
    Last Post: 06-19-2012, 05:46 AM
  3. Multi-value Text Field Search
    By billfold in forum Queries
    Replies: 3
    Last Post: 04-30-2012, 03:43 PM
  4. Multi Field Combo search Form
    By Andyjones in forum Access
    Replies: 3
    Last Post: 03-12-2012, 02:13 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