Results 1 to 4 of 4
  1. #1
    mr.wizzard is offline Novice
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Jun 2010
    Posts
    2

    Filling a table from a checklist

    Hi. I have little experience with access, I used it las in high school... Anyway, what I need to do is a simple management software for a car repair shop. I have a list in an excel sheet with all the possible tasks (labor) and parts that can be replaced on a particular car. For example, there's a row for "headlamp alignment", "oil change", etc.

    I have already created an entity with vehicle information, and I now need to create a Repair History entity, where the mechanic can tick (check) from the labor list every required job for a particular license plate. I would like that the elements checked be copied to that particular vehicle's Repair History. I want the labor list to remain unmodified, and serve as a general list for all cars. I hope I have explained myself correctly. Any help highly appreciated.



    Regards;
    Juan Castro.

  2. #2
    NTC is offline VIP
    Windows Vista Access 2007
    Join Date
    Nov 2009
    Posts
    2,392
    Microsoft Access gives you this ability in the 'LookUp' field type.

    So your Labor List remains as a stand alone table.

    Your Repair History table is going to have a field called maybe 'LaborPerformed' - - and when you set up this field in the table you want to define it as a LookUp field ; as you do this the wizard is going to prompt you as to what table do you want to look up and you will select your Labor List table.

  3. #3
    mr.wizzard is offline Novice
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Jun 2010
    Posts
    2
    Wow, thanks NTP! I managed to have access deploy a drop-down that lists the ID and Description of every available labor/parts and allows the user to select via checkboxes which are required. The IDs are stored on the car's table, under the LaborPerformed column, as a comma-separated list. As Borat would put it: "great success".

    Thanks again!
    Juan Castro
    Cali, Colombia.

  4. #4
    NTC is offline VIP
    Windows Vista Access 2007
    Join Date
    Nov 2009
    Posts
    2,392
    Let me add a note on LookUp fields for other novices that may read this string: It is a good feature provided by Microsoft, but at the same time frowned upon by serious DB designers.

    And there are situations where it can make you very confused. The key to all this is that what is 'bound' and what you see displayed may not be the same.

    To be safe - - a LookUp of a single column table works great and isn't confusing. Such as the common 2 letter State initials....

    But when you tell it to lookup a multicolumn table - then it wants to bind just one of those fields - - and it will typically default to the first column.

    So let's say you set up that traditional 2 letter State initials and enter all 50....but that you set up this table with the autonumber field as the first field..... Over in the customer address table - when you set the State field to be a lookup - it is going to set it up with that autonumber field being bound.....so although you might see AK or MN or whatever - - what is really being stored is 1 or 20 or whatever; and this can totally be confusing when it comes to sorts and other stuff....

    So just be aware of this - - - and in general if it is a single column - - then the bound info and displayed info is always the same....so there is no confusion....

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

Similar Threads

  1. Filling in blank textbox on a report.
    By cowboy in forum Reports
    Replies: 3
    Last Post: 04-16-2010, 02:50 PM
  2. Automatically filling out a form
    By thorpef1 in forum Access
    Replies: 11
    Last Post: 01-04-2010, 07:20 AM
  3. Combox not filling the rest of the form
    By britt britt in forum Forms
    Replies: 2
    Last Post: 10-27-2009, 04:55 AM
  4. Filling in a table via a form
    By janjan_376 in forum Forms
    Replies: 1
    Last Post: 07-06-2009, 01:57 AM
  5. Auto filling form fields
    By adamch29 in forum Forms
    Replies: 1
    Last Post: 07-25-2007, 06:22 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