Access Programming

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • coolguy9
    New Member
    • Feb 2008
    • 2

    Access Programming

    hi every one ,


    I have got a doubt regarding MS Access 2003. how can i move data from one table to another table using queries
  • puppydogbuddy
    Recognized Expert Top Contributor
    • May 2007
    • 1923

    #2
    Originally posted by coolguy9
    hi every one ,


    I have got a doubt regarding MS Access 2003. how can i move data from one table to another table using queries
    Try this, replacing the illustrative object names with the object names (tables and fields) used in your application.

    Insert Into TableName2 (FieldName1, FieldName2) Select FieldName1, FieldName2 From TableName1;

    Comment

    • coolguy9
      New Member
      • Feb 2008
      • 2

      #3
      Originally posted by puppydogbuddy
      Try this, replacing the illustrative object names with the object names (tables and fields) used in your application.

      Insert Into TableName2 (FieldName1, FieldName2) Select FieldName1, FieldName2 From TableName1;

      Thank you for your reply but you have explained it in terms of sql but i require it in Access methodology

      Comment

      • MMcCarthy
        Recognized Expert MVP
        • Aug 2006
        • 14387

        #4
        Originally posted by coolguy9
        Thank you for your reply but you have explained it in terms of sql but i require it in Access methodology
        This is Access. Just open the query window in design view without adding any tables. Then switch the view to SQL and paste in this code with you column and table names substituted.

        Comment

        • mclueless
          New Member
          • Jan 2008
          • 56

          #5
          How will this query work??When vil it run???(i m using access as backend n vb as frontend)...I mean if during runtime the values in table1 are updated then will that immediately be reflected in table2???

          Comment

          • MMcCarthy
            Recognized Expert MVP
            • Aug 2006
            • 14387

            #6
            Originally posted by mclueless
            How will this query work??When vil it run???(i m using access as backend n vb as frontend)...I mean if during runtime the values in table1 are updated then will that immediately be reflected in table2???
            No this is an action query and has to be triggered. It will only run when you trigger it to run.

            Comment

            Working...