Results 1 to 6 of 6

Using excel workbook to update access database on conditions

Threaded 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.

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