+ Reply to Thread
Results 1 to 4 of 4

Excel VBA code to copy specific records from one access table to another - Object Required

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    08-29-2012
    Location
    Slough
    MS-Off Ver
    Excel 2007
    Posts
    469

    Excel VBA code to copy specific records from one access table to another - Object Required

    I have an access database that receives information from an excel userform. I then have another excel spreadsheet that pulls the data back from access depending on search criteria. What I would like to have is a macro that starts when certain cells are clicked which will move the record from 'TABLE1' to 'TABLE2' in access.

    The code I came up with is attached in an excel spreadsheet as my firewall is blocking all SQL injections apparently?

    Thanks in advance,

    Danny
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    08-29-2012
    Location
    Slough
    MS-Off Ver
    Excel 2007
    Posts
    469

    Re: Excel VBA code to copy specific records from one access table to another - Object Requ

    Is this doable? I have still been persevering with it and don't seem to be getting anywhere.

    Any help much appreciated

  3. #3
    Forum Expert
    Join Date
    02-14-2009
    Location
    .
    MS-Off Ver
    ................
    Posts
    2,840

    Re: Excel VBA code to copy specific records from one access table to another - Object Requ

    Your basic SQL statement is probably wrong

    Lose the '*' after 'Table2' and retry.

    No data, no database so no testing, just an observation.

  4. #4
    Forum Contributor
    Join Date
    08-29-2012
    Location
    Slough
    MS-Off Ver
    Excel 2007
    Posts
    469

    Re: Excel VBA code to copy specific records from one access table to another - Object Requ

    Thanks Cytop, I have removed that and am still getting the error.

    I thought that * would need to be there to tell it to take all fields?

    Danny

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. protect Records from Access Table from VBA code
    By Parth007 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-23-2015, 07:17 AM
  2. VBA code to copy first 50000 records from Access table to excelsheet
    By aman1234 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-21-2014, 10:20 AM
  3. [SOLVED] Push specific data to Access Table/records
    By Ubernard in forum Access Programming / VBA / Macros
    Replies: 5
    Last Post: 04-04-2013, 11:31 AM
  4. Excel VBA Error Code 424 Object Required
    By jeskit in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-14-2011, 08:27 AM
  5. Excel Table to Access Records
    By GBR2L in forum Excel General
    Replies: 3
    Last Post: 12-10-2010, 04:59 PM
  6. Deleting all records in a access database table from Excel
    By Dave31 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-29-2008, 02:18 PM
  7. [SOLVED] Excel Hyperlink to specific Access object
    By Karla V in forum Excel General
    Replies: 0
    Last Post: 07-01-2005, 10:05 AM

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