+ Reply to Thread
Results 1 to 6 of 6

Compare rows in access table

  1. #1
    Forum Contributor vijay2482's Avatar
    Join Date
    03-03-2009
    Location
    Paris,France
    MS-Off Ver
    Excel 2003
    Posts
    263

    Compare rows in access table

    Hi,

    I have a access table which contains few rows.
    I need to compare each row in the table with other rows in the same sheet.

    Please Login or Register  to view this content.
    Logic:
    If column "Key" contains different data in 2 rows then check column "Unit", If column "Unit" contains same data then check "Assembly",
    If column "Assembly" in one row is empty and column "Assembly" in another row has data then copy the value of column "Effective_Date" (column "Assembly" has value) to column "Effective_Date" of the row which is empty in column "Assembly".

    required output:
    Please Login or Register  to view this content.
    Thanks in advance.
    VIjay

    If you find any of the post useful to your question, please add to the contributor's reputation by clicking the blue scales icon in the blue bar of the post.

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Compare rows in access table

    Any reason why you have posted the same question in the excel subforum and access?
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Forum Contributor vijay2482's Avatar
    Join Date
    03-03-2009
    Location
    Paris,France
    MS-Off Ver
    Excel 2003
    Posts
    263

    Re: Compare rows in access table

    Yes.

    Currently I have the excel file.
    In the later stage, the original excel file(without applying this logic) will be linked to access database and the same logic should be done in access.

  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,897

    Re: Compare rows in access table

    Crossposted: http://www.mrexcel.com/forum/microso...ess-table.html

    I'm afraid your post does not comply with Rule 8 of our Forum RULES. Do not crosspost your question on multiple forums without including links here to the other threads on other forums.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Expect cross-posted questions without a link to be closed and a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).
    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

  5. #5
    Forum Contributor vijay2482's Avatar
    Join Date
    03-03-2009
    Location
    Paris,France
    MS-Off Ver
    Excel 2003
    Posts
    263

    Re: Compare rows in access table

    I have posted the same question at
    http://www.mrexcel.com/forum/microso...ess-table.html

    Thanks.

  6. #6
    Forum Contributor vijay2482's Avatar
    Join Date
    03-03-2009
    Location
    Paris,France
    MS-Off Ver
    Excel 2003
    Posts
    263

    Re: Compare rows in access table

    I have written this code to update the table, runs with no errors, debuged to check if the values are assigned correctly, but the table is not updated.
    Think I have missed something in the code to update.

    here is my code:
    Please Login or Register  to view this content.
    Thanks.

+ 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