Results 1 to 3 of 3
  1. #1
    Scoutime is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jan 2013
    Posts
    4

    Database Split problem


    I just split an Access 2010 database I have been using to enter orders for the past 10 years.
    Tables and Relationships in the Back-End, and all the rest and links to tables in the Front-End.

    With a little maintenance it is working wonderfully. I have one error I can't find what is causing it.

    I have a form whose source is a query with 5 related tables in it. I have built it like a wizard; one screen after another.
    I enter the part numbers to be order on the first form which is placing them into a table [tblorderdetails] which is tied to a table [tblPartnumbers] for the parts the customer wants to order. The next screen allows me to assign a job number in a related table [tblorders] and then attach that job number [record] to a group of related part numbers.
    This has worked flawlessly for 10 years.
    However now as I enter a new part number into the above tables through this form - a blank record in the related [tblorders] table is created for every part entered on the first screen. So when I go to the second screen to start creating orders to attach to the parts, there are now two records for each part number entered. This is creating tons of blank unattached records in the [orders] table.

    Any thoughts?

    Click image for larger version. 

Name:	Database.JPG 
Views:	16 
Size:	84.5 KB 
ID:	30139

  2. #2
    John_G is offline VIP
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2011
    Location
    Ottawa, ON (area)
    Posts
    2,615
    Your problem I think is that your are using a multi-table query, and when you add data to one table in it, it automatically creates new records in the other tables as well. My suggestion is to not use a query, as rededign your form as I suggest below.

    So when I go to the second screen to start creating orders to attach to the parts,
    That is doing things backwards. You should create the order first, then select parts to make up the order details. What you should be using is not a form based on a multi-table query - instead you should have a main form / subform arrangement, the main form having orders as its record source, with the subform having order details as its record source.

    In this scenario, tblPartNumbers is a lookup table; you would select from a list of parts a value to place in the PartID field of tblOrderDetails.

    (Just as an aside - I don't know your business practices, of course, but it looks like there are a number of fields in tblOrderDetails that perhaps should be in tblOrders. For example, PurchaseOrderNumber - why would the order details records have different purchase order numbers? )

    If you need to add new parts to tblPartNumbers, create a separate form to do that; it could be opened on its own, or from a command button on (for example) the order details subform. The important thing to note is that that form would have only tblPartNumbers as its recordsource.

  3. #3
    Scoutime is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jan 2013
    Posts
    4
    Thank you so much for your reply. I agree with your logic and it makes me think that I somehow had it assigning one Order place holder (10 years ago) so it didn't create a new order every time.

    The reason for doing it the way I have done is that the customer sends orders for 100s of part numbers that fall into different groups of specs and configuration. This has made it so that my customer service could enter all the numbers to be ordered and by the next screen they have automatically been sorted into the various configuration groups and you then know how many Orders to create. This has worked with out flaw for 10+ years, so I think that in the splitting of things I lost whatever assigned a "placeholder" order, so that you can create new orders and attach them to the various groups of part numbers.

    Thank you so much for your quick response. I will search through things for that missing piece.

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

Similar Threads

  1. Split Database Problem
    By justair07 in forum Access
    Replies: 14
    Last Post: 12-13-2013, 02:00 PM
  2. Split Database problem...
    By kaschlegel in forum Database Design
    Replies: 4
    Last Post: 05-16-2013, 02:37 PM
  3. Problem with split database
    By skydiver4 in forum Access
    Replies: 7
    Last Post: 05-15-2012, 02:26 PM
  4. Split Database on a Server Problem
    By DianeG in forum Access
    Replies: 1
    Last Post: 05-29-2010, 01:26 AM
  5. Problem with Split Database - Need Help
    By Linda in forum Access
    Replies: 5
    Last Post: 03-22-2010, 09:35 AM

Tags for this Thread

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