Results 1 to 10 of 10
  1. #1
    keyitan is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Jul 2012
    Posts
    4

    Multiple entry into one record source

    Hi, im a newbie towards access and I need help on how could i do towards creating a AWB having multiple carton dimension to be entered in a form. Sample Codes/ File please i tried on northwind but i could not solve it. Please do help.


    I need to enter this datas towards a main form which is filled with AWB,Invoice number, suppliers, disposition.
    Example
    SUbform

    AWB NoOfCarton Length breadth Height
    1111 2 3 2 3

    1111 2 2 5 8

  2. #2
    Robeen is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Mar 2011
    Location
    Tulsa, Oklahoma.
    Posts
    1,593
    keyitan - could you please explain using different words?

    What I CAN understand [I think] is that you have a Main Form and a Sub form? Is that correct?
    And you want to use data that is on one of those forms and . . . here's where you will have to be a little more clear about what you want to do.
    Otherwise it is difficult to understand.

  3. #3
    keyitan is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Jul 2012
    Posts
    4
    Yes correct, I have a main form which I have to key in all necessary data, then in that form I wish to enter number of carton in that main form, then in the sub form I wish to enter the dimension of each carton.

  4. #4
    Robeen is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Mar 2011
    Location
    Tulsa, Oklahoma.
    Posts
    1,593
    I think you should read this article - it will really help you & then I believe you will be able to do what you need to.
    http://office.microsoft.com/en-ca/ac...005187803.aspx

    Let me know if you have more questions after you read the article.

  5. #5
    keyitan is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Jul 2012
    Posts
    4
    Hi Robeen,

    I have done accoording towards the article that you show me, everything have been done and it seems to be working fine,

    just a small question, any idea how could i key in multiple carton dimension without keying in multiple AWB(primary key to link to the main form with one to many relationship)

  6. #6
    Robeen is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Mar 2011
    Location
    Tulsa, Oklahoma.
    Posts
    1,593
    When I have used this method, the way it is set up, the Main Form stays on a certain 'master record' and on the sub form - I can just enter as many records as I need and they get added to the repated table.
    In my case, I do not have the key field [the one that relates the child form to the main form] on the sub form. Access automatically inserts each record in the sub form along with the key value from the Main form.
    You should be able to do the same thing. Do you have the AWB field on the Main form AND the Child form?

  7. #7
    keyitan is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Jul 2012
    Posts
    4
    Yes, have tried to add in AWB field on both main and child form. With relationships this could let the table to auto insert each record in the sub form to the key value from the main form! Thank you! You solved my problem which i had think for weeks! Thank you!!!

  8. #8
    Robeen is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Mar 2011
    Location
    Tulsa, Oklahoma.
    Posts
    1,593
    Happy that I could help, keyitan! All the best!

  9. #9
    jillpang is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2012
    Posts
    1
    Hi, I am a newbie and I am having a similar problem as keyitin on this thread. I have created an inventory database using the template in acces 2010. In the product form, I am entering product with the same name values and differt part numbers. I am entering the product name in the product code, and visa versa. When I enter the same name items, (in the product code area) I am getting an error, "dupicate information not allowed primary key error" In layout view I looked at the properties listand do not see where I can change/add for duplicates ok. In 2003 It was easy to find, not in 2010. Please help I am racking my brain.

  10. #10
    Robeen is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Mar 2011
    Location
    Tulsa, Oklahoma.
    Posts
    1,593
    Hi Jillpang!

    The 'Duplicate information not allowed . . .' usually comes from trying to enter the same value into a Table when the field in the table has the 'Indexed' Property [In Table -> Design View] set to 'Yes (No Duplicates)'.

    In the Table where you want to be able to enter different PartNumbers for the same Product - go to Design View -> Click on the Product field -> Look below in Field Properties / General Tab -> Indexed.
    Hope this helps. Let me know if you still need help.

    If you want to ask questions - start a new thread rather than posting your question in another thread. That way, if anyone else has the same question as you - they will be able to find the solution by looking at your thread.

    All the Best!

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

Similar Threads

  1. Replies: 14
    Last Post: 05-25-2012, 02:40 AM
  2. Replies: 6
    Last Post: 04-17-2012, 10:32 AM
  3. Copying entry form, change control source
    By Bdowns in forum Access
    Replies: 11
    Last Post: 02-06-2012, 05:39 PM
  4. Replies: 2
    Last Post: 11-16-2011, 07:38 PM
  5. Forms' Record Source
    By Progress2007 in forum Programming
    Replies: 11
    Last Post: 07-27-2009, 11:04 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