Page 1 of 2 12 LastLast
Results 1 to 15 of 28
  1. #1
    Richie27 is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Feb 2012
    Location
    Ireland
    Posts
    159

    proper database design vs front end usability

    Hi,



    I have a table called file with fields as follows

    *staff member selected from combo box that pulls the staff from a table which basically has just their name and staff number - stores just the id field.

    file_id
    file_no
    file_archiver*
    file_archival_authorisation*
    file_long_term_archiver*
    file_long_term_archival_authorisation*
    file_destruction
    file_destroyer_id (fk)
    file_destruct_auth*

    Originally, I had file destruction, file archival and file authorisation in separate tables - before I thought about modeling it. file destruction was the one side of a one to many relationship as many files could be destroyed in one instance, archival authorisation was similar and was connected to both the staff and the file tables and archival was another such table.

    However, I was then told that the design was required to be in a single form so, not seeing how my original design was workable within that frame - I brought the fields back in to the file table - which I could see causing possible problems down the road.

    Any ideas what would be the best way to model this and is the above table design a very bad idea?

    Thanks in advance.

  2. #2
    TinaCa is offline Advanced Beginner
    Windows Vista Access 2010 32bit
    Join Date
    Jul 2011
    Posts
    87
    It looks like your Staff table is only a lookup table and should be separate. it looks like you have different staff members for different tasks (archiver, destroyer, etc). If you put this in separate tables your Staff table would need to be the first table in a query with a right join to all the others. this would allow you to put them on the same form. However, if you need to update them (add, change, etc the information on a single form) then all the fields need to be in the same form. You can still use the Staff table as a lookup (using combo box for each staff member field on the form) and it is OK to repeat the staff member Id in the table for each line item.

    Hope that helps.

  3. #3
    ssanfu is offline Master of Nothing
    Windows 2K Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664

    Question

    Will this structure work for you? Look at the relationship window.

  4. #4
    Richie27 is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Feb 2012
    Location
    Ireland
    Posts
    159
    Quote Originally Posted by TinaCa View Post
    It looks like your Staff table is only a lookup table and should be separate. it looks like you have different staff members for different tasks (archiver, destroyer, etc). If you put this in separate tables your Staff table would need to be the first table in a query with a right join to all the others. this would allow you to put them on the same form. However, if you need to update them (add, change, etc the information on a single form) then all the fields need to be in the same form. You can still use the Staff table as a lookup (using combo box for each staff member field on the form) and it is OK to repeat the staff member Id in the table for each line item.

    Hope that helps.
    Thanks for that - I appreciate it.

    I really only need to record the names of staff. The file table is the most important as it is a kind of records management database. There will really only be a handful of staff members one who will be authorising archival and one who will be physically doing it. I've just recorded their name, staff number and job title in the table I'm using as a lookup.

    When you say about "all fields need to be in the same form" would the same be true for the underlying table? So is it acceptable to do what I have done do you think?

    This "One form" thing does make the interface less complex but I worry about dragging those fileds I previously mentioned (lt_archival, authoriser etc) back into the file table.

    The main structure at present has a form with a client table as the main form and the file table as a subform of the client table as one client will have many related files.

  5. #5
    Richie27 is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Feb 2012
    Location
    Ireland
    Posts
    159
    Quote Originally Posted by ssanfu View Post
    Will this structure work for you? Look at the relationship window.
    Thanks for that detailed response. That is certainly educational. However - client does not like having to open multiple forms and wants all in a single form as they feel it is too confusing for users to have to open multiple forms.

    Also, my main concern is a client table for which there will be multiple files so I have files on the service user table via a one to many relationship. Attached is what my db looks like. It may clarify what I am talking about as I am aware it is diffcult to diagnose without a full picture.

    I have nearly finished my dbase but I am having last minute doubts!
    Attached Files Attached Files

  6. #6
    Richie27 is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Feb 2012
    Location
    Ireland
    Posts
    159
    There is indeed much to be learned from the way you organised that db - how did you do the layout in form 1 - I like that!

  7. #7
    Richie27 is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Feb 2012
    Location
    Ireland
    Posts
    159

    original schema

    Okay - this is my original schema which is way more normalized - couldn't for the life of me figure out how to get it all on one form though!

    Is it even possible.

    Thank god for such forums and the lovely helpful people on it!
    Attached Files Attached Files

  8. #8
    ssanfu is offline Master of Nothing
    Windows 2K Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    I think you still need work on the table structure to get it in 3NF.


    client does not like having to open multiple forms and wants all in a single form as they feel it is too confusing for users to have to open multiple forms.
    Really??? The client doesn't think they have intelligent people working for them???


    Well, it is possible that you could get it on one form by using subforms in multiple tabs. One tab w/subform for check in/out, one tab w/subform for archiving, one tab w/subform for LT archiving, one tab w/subform for destruction. I still think these are all "events" and should be in one table, but ..... (my $0.02 )

    Also, there are 5 tables with a field named "ID" .... gets confusing when creating queries. I make the PK (as much as possible) include the table name, like the checkout table.

  9. #9
    Richie27 is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Feb 2012
    Location
    Ireland
    Posts
    159
    Quote Originally Posted by ssanfu View Post
    I think you still need work on the table structure to get it in 3NF.


    Really??? The client doesn't think they have intelligent people working for them???


    Well, it is possible that you could get it on one form by using subforms in multiple tabs. One tab w/subform for check in/out, one tab w/subform for archiving, one tab w/subform for LT archiving, one tab w/subform for destruction. I still think these are all "events" and should be in one table, but ..... (my $0.02 )

    Also, there are 5 tables with a field named "ID" .... gets confusing when creating queries. I make the PK (as much as possible) include the table name, like the checkout table.
    Hey thanks - the events table thing does make a lot of sense. Aside from that - do you think (org schema) some of the other fields in say the service_user table like contact details should ideally be broken out into other tables? I guess I've been cutting corners with normalisation because of front end design trickiness.

    One more thing - since file destruction, archival, lt_archival would have slightly different fields to file_checkout - do you think I should break the different fields (that are in file_checkout) out into another table.

    Sorry for being so incredibly dumb - but I've very amateur and I got no place else to go! ;-)

    Thanks for all your help so far - it is much appreciated.

    I will spread the karma if I ever manage to get out of this pit of ignorance!

  10. #10
    Richie27 is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Feb 2012
    Location
    Ireland
    Posts
    159
    So - is this better do you think?
    Attached Files Attached Files

  11. #11
    ssanfu is offline Master of Nothing
    Windows 2K Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    do you think (org schema) some of the other fields in say the service_user table like contact details should ideally be broken out into other tables?
    I have no idea what the purpose of your data base is for, so you might take my suggestions with a grain of salt.

    Looking at the table "service_user", these seem OK:
    --fields--
    ref_no (I might have used su_no_PK or Serv_User_PK)
    surname
    first_name
    home_address
    date_of_birth (maybe save some typing and use DOB?)
    date_of_death
    date_of_leaving_service

    Don't know about these
    - can there be more than one of each of these?
    - How are these an attribute of a person?

    residential_service
    home_service

    date_of_last_contact
    details_of_last_contact

    -----------------------------
    Here are web pages about normalization :
    http://www.jpmartel.com/bu12_c.htm - aimed at dBase, but still valid
    http://pubs.logicalexpressions.com/P...icle.asp?ID=88
    http://pubs.logicalexpressions.com/P...cle.asp?ID=182

  12. #12
    Richie27 is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Feb 2012
    Location
    Ireland
    Posts
    159
    sorry mate. the new.doc one - attached in my previous post was the latest schema. Though I just spotted a flaw in that too as in the events table destruction is done by a company rather than a person and I didn't move the destruction bits over.

    Ya, I guess the contact thing could be a problem where it is but I thought it might be okay sense there's only ever going to be one entry there, apparently.

    thanks for your help anyway.

  13. #13
    Richie27 is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Feb 2012
    Location
    Ireland
    Posts
    159
    Quote Originally Posted by Richie27 View Post
    sorry mate. the new.doc one - attached in my previous post was the latest schema. Though I just spotted a flaw in that too as in the events table destruction is done by a company rather than a person and I didn't move the destruction bits over.

    Ya, I guess the contact thing could be a problem where it is but I thought it might be okay sense there's only ever going to be one entry there, apparently.

    thanks for your help anyway.
    Nice tutorials by the way - cheers!

  14. #14
    ssanfu is offline Master of Nothing
    Windows 2K Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Got caught up in work and missed the latest attachment.

    Changed the table structure 6 times on one of my mdb projects.. Seemed pretty straightforward... but wasn't providing the results needed.

    Got to keep tweaking the structure until the results are right. Good luck.


  15. #15
    Richie27 is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Feb 2012
    Location
    Ireland
    Posts
    159
    Quote Originally Posted by ssanfu View Post
    Got caught up in work and missed the latest attachment.

    Changed the table structure 6 times on one of my mdb projects.. Seemed pretty straightforward... but wasn't providing the results needed.

    Got to keep tweaking the structure until the results are right. Good luck.

    Ha, ya - I keep changing too.

    I could have it looking really nice and they would be happy with it but I know in my heart that it is fundamentally flawed.

    Bye bye Mr. Magician and your bag of tricks!!

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

Similar Threads

  1. Replies: 5
    Last Post: 08-12-2013, 12:53 AM
  2. Replies: 3
    Last Post: 04-20-2012, 05:53 PM
  3. Link SQL Database to new Access front end
    By gumbi17 in forum SQL Server
    Replies: 3
    Last Post: 02-07-2012, 10:07 PM
  4. Front-end database won't work on other computer?
    By lindacheng2000 in forum Database Design
    Replies: 4
    Last Post: 01-11-2012, 03:21 PM
  5. synchronize thumbdrive to front end database
    By Hubler in forum SQL Server
    Replies: 4
    Last Post: 12-01-2011, 02:47 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