Results 1 to 15 of 15
  1. #1
    trubry is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2012
    Posts
    7

    Single Data Form Put Data into Seperate specific tables


    I am new to Microsoft Access. I have built two entry forms for product release information. I have a drop box under the label customer for each specific customer. I would like for this form to send the data entered in the form to the customer specific table from the customer names in the drop box. I have tried to research and execute this myself thus have been very unsuccessful. Any help is great appreciated.

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    It would typically be a serious design flaw to have customer specific tables. Do they hold different data for each customer (ie different fields)?
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    trubry is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2012
    Posts
    7
    No the fields are the exact same for each table. I just want the form to recognize that when "A" Customer is selected in the form that the data entered moves to "A" Customer table.

  4. #4
    RayMilhon is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Aug 2011
    Location
    Southern California
    Posts
    1,071
    PBaldy is right your design is flawed badly. There is NO!! good reason to have multiple tables with exactly the same data elements.

  5. #5
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    I understand what you want, I'm just warning you that it would be a big violation of normalization rules. Typically you'd have one table, with a field to denote which customer the record is for. I suspect everything will flow much better for you with that design.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  6. #6
    trubry is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2012
    Posts
    7
    Understood. And thats what my original design was for. A field in the table noted which customer it was. I think my best route is to do a separate form and table for each customer. Thanks for your help

  7. #7
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Trust me, you'll regret it in the long run (you did say you were new at this, so it's curious that you would disregard the advice of 2 experienced developers). Do it correctly now and you'll be much better off. You want one table and one form. It's easy to restrict a form to a specified customer. You don't want to have to create a new table and form every time you get a new customer.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  8. #8
    trubry is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2012
    Posts
    7
    O I wasnt trying to disregard your advice at all. I am new at this and guess I am just having issues wrapping my head around the whole thing. I like the idea of one table one form how does one restrict the form to specific customer? We only have a total of 5 clients (customers) and I dont see the number changing at all. Its basically a database for releases that we send to our clients. I really do appreciate your help and in no way disregarding it one bit.

  9. #9
    RayMilhon is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Aug 2011
    Location
    Southern California
    Posts
    1,071
    Without knowing the structure of your database it's hard to be specific. But you can create your form using the Form View you will only see one record at time. You can arrange the fields on the form in any manner you choose. The main thing to be aware of is if you're using a query to populate your form make sure it's an updateable query otherwise you will have to include a means in VBA to Save the record when modified.

  10. #10
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    It depends on how you want your application to flow. This is one way of restricting a form:

    BaldyWeb wherecondition

    If you're going to be in one form, another option is to base it on all customers and use a combo box to select which one you want to look at. That can be done with the combo box wizard, selecting the third option, "Find a record...".
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  11. #11
    trubry is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2012
    Posts
    7
    I really do appreciate the help I really do. I figure if I provide a screen shot this could make it easier for you guys to see how my table is laid out. In the drop bar there is 5 customers in it. I would just want it to be organized in the one table like you guys have mentioned doing it the other way is a major flaw.
    My fields go as following:
    Customer (Contains Drop Box) Release Number Description (Drop Box) Install Date Notes.
    Guess my question is now is there a way in the table that it would organize it for my five customers by customer? Once again thanks so much I know I am a pain in the arse!

  12. #12
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    A screen shot or sample db couldn't hurt. Did you try the combo box wizard on a form bound to that table? Do you have more than one record for each customer?
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  13. #13
    trubry is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2012
    Posts
    7
    I did a combo box in the table which then transferred over to the Form. I will have multiple records for the customers since we have releases almost weekly and just want to have the actual table sort it by the customer name. I am working on getting you a screen shot

  14. #14
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Most of us never let users into tables or queries; only forms and reports. Think of the table as a bucket you just dump data into. You give it order when you query it. In your case we might restrict the form to a given customer and also impose a sort order on it based on date.

    It sounds like you may want two tables, but it depends on your data. Typically you might have a "customers" table with info about the customers, and a "releases" table with info about releases. That table would be related to the customers table on a customer ID field. More info about your data might yield better suggestions.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  15. #15
    trubry is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2012
    Posts
    7
    Ok I have a screen shot as to what my table is set up as what else would be helpful sorry for all these questions. screenshot is attached

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

Similar Threads

  1. Replies: 1
    Last Post: 12-21-2011, 02:11 PM
  2. Replies: 1
    Last Post: 05-17-2011, 05:19 AM
  3. Replies: 5
    Last Post: 03-03-2011, 03:56 PM
  4. Data from two tables on one form?
    By 10 Gauge in forum Forms
    Replies: 11
    Last Post: 02-15-2011, 04:09 PM
  5. Concatinate data from seperate table
    By ntonline in forum Forms
    Replies: 2
    Last Post: 01-28-2011, 11:45 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