+ Reply to Thread
Results 1 to 5 of 5

How to Add Values to A field in a Table

  1. #1
    Registered User
    Join Date
    09-15-2011
    Location
    Philippines
    MS-Off Ver
    Excel 2003
    Posts
    20

    How to Add Values to A field in a Table

    Hi Guys,

    I have a huge database size now and I want to Archive it to another Access Database.

    i Linked the Archive Table to my Main Access Database.

    User must name their archived respective...

    For example:

    From: Main Access Database, i have Field1, Field2, Field3 and in my Archive Database i have YEAR, Field1, Field2, Field3


    I created a button to append the data to the Archive Database, after user input for example YEAR2012, in my archive table should be

    YEAR - 2012
    Field1
    Field2
    Field3


    how do i this?

    Please help.

    THanks.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,940

    Re: How to Add Values to A field in a Table

    I'm afraid that your explanation is not quite clear. Please try to explain further what you are trying to do. Also, what does this mean?
    User must name their archived respective...
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    09-15-2011
    Location
    Philippines
    MS-Off Ver
    Excel 2003
    Posts
    20

    Re: How to Add Values to A field in a Table

    @alansidman,

    i'm sorry if its not clear.

    i have two tables, MainTable and ArchiveTable

    In Maintable fields are Field1, Field2 etc.


    In ArchiveTable fields are Year, Field1, Field2

    I need to archive all data from Maintable to ArchiveTable but user should enter a name to label all data.

    Example:

    From Maintable

    Field1 - 1
    Field2 - 2

    To ArchiveTable

    Year - year2012
    Field1 - 1
    Field2 - 2

    hope i explained it clearly already... sorry again.

    Thanks.

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,940

    Re: How to Add Values to A field in a Table

    Sounds like a simple append query. Here is a tutorial on append queries. You will need to run an update query on the first table before appending it to the second one. The second link is a tutorial on update queries.

    http://office.microsoft.com/en-us/ac...010076526.aspx

    http://www.techonthenet.com/access/queries/
    Then scroll down to update queries
    Last edited by alansidman; 05-04-2012 at 07:09 AM.

  5. #5
    Registered User
    Join Date
    05-15-2012
    Location
    daffodil1003
    MS-Off Ver
    daffodil1003
    Posts
    1

    Re: How to Add Values to A field in a Table

    Such a very amazing link!
    Thanks you for the post.
    __________________
    Watch What to Expect When You’re Expecting Online Free

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1