Closed Thread
Results 1 to 6 of 6

Using excel workbook to update access database on conditions

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    03-14-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    491

    Using excel workbook to update access database on conditions

    Hi All,


    I'm looking to accomplish the following...


    1. I want to use an Excel work book that will allow me click a button> to select another excel file (With my stored data) to input into access> and Upload that selected files data to the appropriate Columns in Access.


    2. The Data I am working with is NBA Stats for NBA Players.
    -If the Player exist in the database - and the stats are the same --pretty much do nothing.
    -If the player does not exist in the database and is present on the new data set I am importing (via the Macro workbook), Insert the new row.
    -If the Data being does not include all the players existing in the database- then the players in the database move to in-active


    Basically the Data being imported will determine how the database is updated/behaves


    How Can I accomplish this using a macro?


    The reason for the work book is to have end users use it. They should be able to click a button - which will then prompt them to select the file from the folder...Whereby one of the three situations happens row for row...


    Sample Data attached...

    Sample Data to be updated...
    DATA SET DATE PLAYER FULL NAME POSITION OWN TEAM OPP TEAM V MIN BL PTS
    2013-2014 Regular Season 10/29/2013 Jason Maxiell PF Orlando Indiana R 21.32 5 2
    2013-2014 Regular Season 10/29/2013 Maurice Harkless SF Orlando Indiana R 18.5 4 3
    2013-2014 Regular Season 10/29/2013 Nikola Vucevic C Orlando Indiana R 25.65 3 4
    2013-2014 Regular Season 10/29/2013 Arron Afflalo SG Orlando Indiana R 27.98 2 6



    This is cross-posted in accessforums here:

    http://www.accessforums.net/showthread.php?t=58137

    I have attached a sample database with headings in the crosspost.
    Attached Files Attached Files
    Last edited by swade730; 02-21-2016 at 10:14 AM.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2505 Win 11
    Posts
    24,720

    Re: Using excel workbook to update access database on conditions

    crossposted: http://www.accessforums.net/showthread.php?t=58137

    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

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2505 Win 11
    Posts
    24,720

    Re: Using excel workbook to update access database on conditions

    I have zipped a proforma db with a table which is linked to your excel file. In this manner, any changes you make to the excel file is automatically changed in your database. No need to run append or update queries.
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    03-14-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    491

    Re: Using excel workbook to update access database on conditions

    Quote Originally Posted by alansidman View Post
    I have zipped a proforma db with a table which is linked to your excel file. In this manner, any changes you make to the excel file is automatically changed in your database. No need to run append or update queries.
    Thank You so much, What do you mean by 'proforma' database?

  5. #5
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2505 Win 11
    Posts
    24,720

    Re: Using excel workbook to update access database on conditions

    It means, I built a simple data base using your excel file. Replace the term proforma with the term example.

  6. #6
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2505 Win 11
    Posts
    24,720

    Re: Using excel workbook to update access database on conditions

    OP has opened a new thread in Commercial Services

Closed Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Update Access database from excel worksheet data through SQL in VBA Macro
    By anandagrawal444 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-21-2015, 07:06 AM
  2. Insert delete and update from excel userform to access database - help
    By rdm52 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-20-2015, 09:45 AM
  3. Replies: 2
    Last Post: 07-05-2013, 09:37 AM
  4. Replies: 3
    Last Post: 05-30-2013, 04:29 AM
  5. Update/Delete a Record in an Access 2010 Database using Excel VBA
    By tomlancaster in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-15-2012, 12:36 PM
  6. Converting an Excel workbook to an Access Database
    By russkris in forum Access Tables & Databases
    Replies: 4
    Last Post: 01-05-2011, 12:32 AM
  7. Update Access database through changes in Excel worksheet
    By munkayboi in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-31-2007, 07:16 PM

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