Page 1 of 2 12 LastLast
Results 1 to 15 of 30
  1. #1
    glen is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2012
    Posts
    171

    Form designing.

    Hello,
    I have some problems here in form designing. I have one main form with sub form.
    The main form is for work orders numbers, i.e xe305,xe306...........
    The sub form is for detail of items in each order number.
    The problem is now that normally when we click on next record of main form navigation button it will jump us on
    next record, means if we are on work order # xe305 then it will jump to work order xe306 or new blank record.
    But what I want that by on clicking next record button of main form it should not jump to next work order number but it should
    jump to next blank record in sub form.
    for example in work order number xe305 we have to deliver 10 items but in first delivery we deliver only 5 items and 5 items reaming.
    So it means in work order number xe305 we deliver 5 items in delivery serial#1.next time when we will deliver the rest 5 items it will be


    delivery serial #2.
    I am attaching my table relationship and form design. I know there is also problem in my table relationship.
    Please guide me properly.
    If possible please make a sample demo database for me.
    Thanks

  2. #2
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    Sorry, but common sense should tell you that if you click on the native 'next record' button on the Main Form, it's going to take you to the next record on the Main Form!

    Only workaround I can think of would be to hide the native next button, on the Main Form, and replace it with a custom command button, coded to move to the next record on the Subform.

    Linq ;0)>

  3. #3
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    From your description, this is the structure I would start out with. I drew this out on paper first, then created the tables.
    One order can have many deliveries, and one delivery can have multiple order details (items).

    The field names ending in "PK" are for linking tables and shouldn't be displayed on forms/reports.
    The two fields "WorkOrder" and "DeliveryNum" are for you to assign your numbers (roll your own number scheme - automatic or manual).

    Attachment 9505


    The main form's record source would be a query based on the table "Orders".
    A sub form's record source would be based on a query based on the table "Deliveries"
    A sub sub form's record source would be based on a query on the table "Order_Details"

    If possible please make a sample demo database for me
    I could do that..... but then you wouldn't have the fun or get the experience..

  4. #4
    glen is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2012
    Posts
    171
    ......................
    Last edited by glen; 10-17-2012 at 03:43 AM.

  5. #5
    glen is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2012
    Posts
    171
    Quote Originally Posted by ssanfu View Post
    From your description, this is the structure I would start out with. I drew this out on paper first, then created the tables.
    One order can have many deliveries, and one delivery can have multiple order details (items).

    The field names ending in "PK" are for linking tables and shouldn't be displayed on forms/reports.
    The two fields "WorkOrder" and "DeliveryNum" are for you to assign your numbers (roll your own number scheme - automatic or manual).

    Attachment 9505


    The main form's record source would be a query based on the table "Orders".
    A sub form's record source would be based on a query based on the table "Deliveries"
    A sub sub form's record source would be based on a query on the table "Order_Details"


    I could do that..... but then you wouldn't have the fun or get the experience..
    Ok Thanks,
    I will try myself but if not possible from me then you have to design for me.

  6. #6
    glen is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2012
    Posts
    171
    Quote Originally Posted by ssanfu View Post
    The main form's record source would be a query based on the table "Orders".
    A sub form's record source would be based on a query based on the table "Deliveries"
    A sub sub form's record source would be based on a query on the table "Order_Details"


    I could do that..... but then you wouldn't have the fun or get the experience..
    I made the tables according your design and made relationship.And I think it working fine.
    but the problem is now to design forms.
    and secondly I am confused about sub sub form.

  7. #7
    glen is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2012
    Posts
    171
    ........................
    Last edited by glen; 10-17-2012 at 03:45 AM.

  8. #8
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    The main form would have the info about the Orders. The data is displayed in the detail section.
    In the footer would be the sub-form for the "Deliveries" data - displayed in the details section of the sub form.
    In the footer of the sub-form would be the sub-sub-form.
    The details section of the sub-sub-form would display the Order_Details data.
    Pretty much like your form in post #1 (and 4).


    (BTW, I would use queries for the record sources of the form so the data can be sorted. If you use tables, the data won't/can't be sorted.)

  9. #9
    glen is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2012
    Posts
    171
    Thank you very much.
    I get the design procedure.
    Now if there was some problem in record sources, Sorting and filtering then I will ask you.

  10. #10
    glen is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2012
    Posts
    171
    Quote Originally Posted by ssanfu View Post
    The two fields "WorkOrder" and "DeliveryNum" are for you to assign your numbers (roll your own number scheme - automatic or manual).
    I want to assign automatic number to delivery field.
    How I can do it?

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

  12. #12
    glen is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2012
    Posts
    171
    Thank you I will try to learn auto number from these tutorials.
    But Now I need help in cascading combo boxes.
    I want that first I will select department from combo1 then Location so it should show me records of that
    department and location.
    I m attaching my form design which I made according your assistance and tables relationships.
    Regards,

  13. #13
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Still thinking....

    Would you tell me more about locations/departments and post a few examples??
    Might have to change the structure again...


    Oops, I think I missed the "requested by' field in table "Orders"

  14. #14
    glen is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2012
    Posts
    171
    Quote Originally Posted by ssanfu View Post
    Still thinking....

    Would you tell me more about locations/departments and post a few examples??
    Might have to change the structure again...


    Oops, I think I missed the "requested by' field in table "Orders"
    we have two factories factory A and factory B in Location.
    and too many same departments in both locations.
    i.e in Factory A we have department "Production" and in factory B also have same department "Production"
    we have to deliver items in both locations in same department.
    Department - Location
    Production - Factory A
    Production - Factory B

    and requested by field is not important that's why I removed.

  15. #15
    glen is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2012
    Posts
    171
    May be this will help you to understand what I want?

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

Similar Threads

  1. Designing Form (Beginner)
    By ccordner in forum Forms
    Replies: 1
    Last Post: 01-17-2012, 12:02 PM
  2. Help designing a group update form
    By 10 Gauge in forum Forms
    Replies: 22
    Last Post: 03-28-2011, 10:30 AM
  3. Designing Reports
    By jlclark4 in forum Reports
    Replies: 3
    Last Post: 02-28-2011, 01:46 PM
  4. Designing Form
    By Kookai in forum Forms
    Replies: 0
    Last Post: 07-30-2010, 11:03 AM
  5. Help Designing Tables
    By sakthivels in forum Database Design
    Replies: 7
    Last Post: 06-09-2009, 07:48 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