+ Reply to Thread
Results 1 to 5 of 5

Moving data from one table to another in access stopped working

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

    Moving data from one table to another in access stopped working

    Hi All,

    I have the following code. I posted about it yesterday and then found a way to get it working. It worked for a few hours and now doesn't want to play ball, hoping one of you can help me please.

    Please Login or Register  to view this content.

    The bit of code that doesn't seem to work is the movement from table to table below:

    Please Login or Register  to view this content.
    It show the below in the immediate box

    INSERT INTO [LHR Archive]Select * FROM[LHR Current]

    Any help is greatly appreciated.

    Thanks.

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,644

    Re: Moving data from one table to another in access stopped working

    You need a space in front of SELECT and FROM
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

  3. #3
    Forum Contributor
    Join Date
    08-29-2012
    Location
    Slough
    MS-Off Ver
    Excel 2007
    Posts
    469
    Thanks. Will try it when i get to work tomorrow. Such a stuoid mistake :/

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

    Re: Moving data from one table to another in access stopped working

    This still isn't working, I have tried adding the spaces. Are there any other suggestions please?

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

    Re: Moving data from one table to another in access stopped working

    I worked it out, I had changed some of the field names in the current table but not in the Archive table so it couldn't be moved across. Feel rather stupid for that one!

+ 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. Errors: Microsoft Excel has stopped working - crash in pivot table
    By EvaLina in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 02-12-2014, 09:58 AM
  2. Updating pivot table filters through a macro has stopped working, help please
    By JasperTata in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-21-2012, 09:53 AM
  3. Help - Web data source stopped working with formulas
    By Daniel86 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-03-2012, 04:12 AM
  4. Quick Access Toolbar macros stopped working
    By surfengine in forum Excel General
    Replies: 1
    Last Post: 10-13-2012, 11:02 PM
  5. VB code stopped working involving data import using XML
    By hariimmadi in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-09-2011, 06:04 PM
  6. [SOLVED] Remote data query stopped working
    By Mark Scholes in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-24-2005, 05:06 AM
  7. Importing Data from Access stopped working
    By FrankTimJr in forum Excel General
    Replies: 0
    Last Post: 02-14-2005, 10:06 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