Page 2 of 3 FirstFirst 123 LastLast
Results 16 to 30 of 31
  1. #16
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    MoldReq
    1. Work_Ord(Pri Key)
    2. Mold_No
    3. Material
    4. Date
    "Date" is a reserved word. Better would be "WO_Date" or "Request_Date"


    11. Attachment
    What are the attachments?

    5. Time_In


    6. Time_Out
    Can the Time in / Time out span multiple days?
    Last edited by ssanfu; 01-31-2013 at 02:48 PM. Reason: Added question

  2. #17
    abernut is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Jan 2013
    Location
    Jacksonville, FL
    Posts
    39
    Quote Originally Posted by ssanfu View Post
    "Date" is a reserved word. Better would be "WO_Date" or "Request_Date"
    I have changed it to Req_Date


    Quote Originally Posted by ssanfu View Post
    What are the attachments?
    During our meeting they said that they sometimes need to attach a drawing. I included this field and told them they could scan the drawing, save it as a .jpg, and add it as an attachment. I hope I told them correctly.

    Quote Originally Posted by ssanfu View Post
    Can the Time in / Time out span multiple days?
    Yes

  3. #18
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Quote Originally Posted by abernut View Post
    During our meeting they said that they sometimes need to attach a drawing. I included this field and told them they could scan the drawing, save it as a .jpg, and add it as an attachment. I hope I told them correctly.
    Saving the pictures in Access will cause tremendous bloat. I would save the pictures to a folder and use a hyperlink to view/access them.

    Can the Time in / Time out span multiple days? Yes
    Won't you need Date In / Date Out fields to be able to calculate or know when they came in for maint and when they left?

  4. #19
    abernut is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Jan 2013
    Location
    Jacksonville, FL
    Posts
    39

    Relationships

    How does this look so far:
    Click image for larger version. 

Name:	Relationships.jpg 
Views:	5 
Size:	82.3 KB 
ID:	10991

    I have the following one-to-many
    • Molds.Mold_No -> MoldReq.Mold_No
    • Materials.Material_Type -> MoldReq.Material_Type
    • Lubricant.Lube_Type -> MoldLog.Lubricant_Type
    • MaintType.Maint_Type -> MoldLog.Maint_Type


    I also have a one-to-one for
    • MoldLog.Work_Ord -> MoldReq.Work_Ord


    I am not sure how to set up a relationship between the Employees table and all the places it is need on the other tables.

  5. #20
    abernut is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Jan 2013
    Location
    Jacksonville, FL
    Posts
    39
    Quote Originally Posted by ssanfu View Post
    Saving the pictures in Access will cause tremendous bloat. I would save the pictures to a folder and use a hyperlink to view/access them.
    Not a problem. They have their own folder on my file server. I will just create subfolder for access files.


    Quote Originally Posted by ssanfu View Post
    Won't you need Date In / Date Out fields to be able to calculate or know when they came in for maint and when they left?
    True, I will add the changes to the table so it will resemble:
    Date_In
    Time_In
    Date_Out
    Time_out

  6. #21
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    In your relationship pic, you have "MoldLog.Work_Ord" as the PK. "MoldLog.Log_ID should be the PK for MoldLog table.


    "MoldReq.Work_Ord" (PK) -->> "MoldLog.Work_ord" is the FK

  7. #22
    abernut is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Jan 2013
    Location
    Jacksonville, FL
    Posts
    39
    Quote Originally Posted by ssanfu View Post
    In your relationship pic, you have "MoldLog.Work_Ord" as the PK. "MoldLog.Log_ID should be the PK for MoldLog table.


    "MoldReq.Work_Ord" (PK) -->> "MoldLog.Work_ord" is the FK
    I think I tried that but every time I tried creating the relationship it recognized it as an indeterminate type.

  8. #23
    abernut is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Jan 2013
    Location
    Jacksonville, FL
    Posts
    39
    Here is the new relationship structure.
    Click image for larger version. 

Name:	Relationships2.jpg 
Views:	4 
Size:	80.0 KB 
ID:	10997

    I am still not sure how I link the Employees table to the MoldReq and MoldLog table.

    Mike

  9. #24
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    What are the field types for

    MoldReq.Work_Ord (PK)

    MoldLog.Work_Ord (FK)

    ------------------
    I use an autonumber field 99% of the time to link fields. I have seen where a text field is used for a PK field. I have read it can be done but it is not as efficient as using a Long Int.

  10. #25
    abernut is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Jan 2013
    Location
    Jacksonville, FL
    Posts
    39
    Quote Originally Posted by ssanfu View Post
    What are the field types for

    MoldReq.Work_Ord (PK)

    MoldLog.Work_Ord (FK)

    ------------------
    I use an autonumber field 99% of the time to link fields. I have seen where a text field is used for a PK field. I have read it can be done but it is not as efficient as using a Long Int.
    I would like to use autonumber but the naming convention they use contains letters.

  11. #26
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    There is nothing preventing you from using autonumber as the PK and having a separate field for your internal numbering system.

  12. #27
    abernut is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Jan 2013
    Location
    Jacksonville, FL
    Posts
    39
    Thanks,
    I should probably do the same with the Molds.Mold_No then.
    Create a Molds.MoldID that is a autonumber and set that as the PK.

  13. #28
    abernut is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Jan 2013
    Location
    Jacksonville, FL
    Posts
    39
    Does this now look accurate?
    Click image for larger version. 

Name:	MoldRelationships.jpg 
Views:	3 
Size:	82.4 KB 
ID:	11046

    I am still not certain on how to set the relationship up between the Employees table and the MoldReq and MoldLog tables.

    In the MoldReq table there are three places in which the Employee information is required. Do I just create a One-To-Many for each field?

  14. #29
    abernut is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Jan 2013
    Location
    Jacksonville, FL
    Posts
    39
    I must really be over thinking this.
    I am getting ready to make my first form so the user can enter a Mold Request.

    The information required from the user:
    Work Order Number
    Mold Number
    Machine Number
    Material
    Comments
    Who was it installed by
    Who pulled it
    How Many Cycles
    Who checked it.

    I am using the form wizard, so it prompts me for what Fields I want to use from the MoldReq table.
    The following information now resides within another table (Mold_No, Material_Type, Machine_No, Mold_Installed_By, Mold_Pulled_By, Checked_By) but they are still fields in the MoldReq table.

    Do I need to use the fields from the other table in the form, if so how does it update the MoldReq Table?

  15. #30
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Don't base the form on a table, use a query. Create a query that joins the two (or more) tables - add the required fields to the query design grid. The query will be the record source for the form. When the wizard asks for a table or query, select the query.
    (All of my forms as a query as the record source.)


    Try it and post back....
    (and post your current dB design if you want)

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

Similar Threads

  1. Calculated field help
    By kek979 in forum Queries
    Replies: 1
    Last Post: 09-28-2012, 10:59 PM
  2. Calculated Field?
    By crcastilla in forum Queries
    Replies: 1
    Last Post: 03-23-2012, 01:14 PM
  3. Calculated Field
    By crcastilla in forum Access
    Replies: 2
    Last Post: 03-22-2012, 10:16 AM
  4. Calculated Field (if/then) Help
    By agent- in forum Programming
    Replies: 10
    Last Post: 03-30-2011, 05:43 PM
  5. Calculated Field Help
    By Alex Motilal in forum Queries
    Replies: 2
    Last Post: 01-06-2011, 04:54 AM

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