Add data into a table

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Becker
    New Member
    • Jul 2012
    • 54

    Add data into a table

    Is it possible to add the values from text boxes on a form into a table other than the one the form is bound to? For example: I have a text box "production id" on form "data" which is bound to the query "info". When a button is clicked I would like the user entered value in the text box "production id" to be saved as a new record in the table "labor". I hope that makes sense what I am thinking.
  • NeoPa
    Recognized Expert Moderator MVP
    • Oct 2006
    • 32653

    #2
    Yes. It can be done, but why would you want to? Why not have a bound form for the table instead?

    Comment

    • Becker
      New Member
      • Jul 2012
      • 54

      #3
      The form is already bound to a query that doesn't have the table of interest in it. There are multiple records on the one table for each record in the query so it was messing up my query having them together.

      Comment

      • zmbd
        Recognized Expert Moderator Expert
        • Mar 2012
        • 5501

        #4
        Respectfully, this issue indicates a serious problem with the over-all database design[*]> Database Normalization and Table Structures.

        Comment

        • NeoPa
          Recognized Expert Moderator MVP
          • Oct 2006
          • 32653

          #5
          You say "The form" Becker, but I was saying a form. Maintaining the data of two separate tables from a single form is dangerous and only for the very experienced - who would tend to avoid it anyway unless there were a very specific reason why it might make sense in a particular set of circumstances.

          Comment

          Working...