How can I Move data from one column to another in my access table?

I have two columns, one that stores current month’s data and one that stores last month’s data. Every month data from column 2 (this month’s data) needs to be moved to column 1 that holds last month’s data. I then null out column 2 so I can accumulates this month’s data.
I understand how to drop a column or add a column, how do I transfer data from one column to another.
Here is my trial code:
<cfquery name="qQueryChangeColumnName" datasource="#dsn#">
  ALTER TABLE leaderboard
  UPDATE leaderboard SET  points2 = points3
</cfquery>
Unfortunately, I get the following error:
Error Executing Database Query.
[Macromedia][SequeLink JDBC Driver][ODBC Socket][Microsoft][ODBC Microsoft Access Driver] Syntax error in ALTER TABLE statement.
How can I transfer my data with the alter table method?

I looked up the Access SQL reference (which is probably a
good place to start when having issues with Access SQL), and
it suggests you probably need a WHERE clause in there.
I agree the documentation is a good place to start. But you should not need a WHERE clause here.
Too few parameters. Expected 1.
If you run the SQL directly in Access, what are the results? At the very least, it should provide a more informative error message..

Similar Messages

  • How can I move data from one loop to another?

    I am using LabVIEW to record and display data.  The problem that I have run into is that if I try to collect and display the data all in one loop data points are lost because the loop takes so long to execute.  I decided to break my program into two independent loops and the data is recorded at proper speeds, but now I cannot get the data out of the first loop and into the second loop.

    See my example for one method of how to setup the Queue which Omar suggested. You'll also see many other ways, most of which should be avoided until you get more experience.
    Communicating Between Loops
    Richard

  • How can you transfer data from one ipod to another ?

    How can you transfer data from one ipod to another ipod ?

    The geniusbar told me what to do, I understood but there is still a problem for me >:/ It's not showing up though. Like "device."  Nothing is happening, and I tried as soon as I got home. Then after half an hour, then an hour, then 3 hours. My problem is that it's not showing up! It's stuck in recovery mode! There's still like 25% battery. So I have no idea why.

  • How can I transport data from one client to another client?

    How can I transport data from one client to another client? 
    Regards,
    Subho

    hmmm, CTS = cutomizing transport?
    If you have a customizing table, there are still two possibilities.
    1. customize in DEV system and transport
    2. customize right there where you need it.
    this depends on how the maintainance view is built. If it is a simple customizing table and you get not asked for a TR when customizing a new record or changing an existing one, you hit possibility 2.

  • How can i move music from one account to another

    I have 4 different accounts in Itunes and i wish to move all the music into one account
    help please !!!!

    You can't transfer content from one account to another account, nor can you merge accounts - content will remain tied to the account that downloaded it

  • How can I move bookmarks from one computer to another.  JUST BOOKMARKS, NOT ANYTHING ELSE

    How can I move Bookmarks from my MacBook Pro to my iMac; just Bookmarks, nothing else.

    Safari Bookmarks?
    Export bookmarks as a HTML file to a usb stick or something.
    Put the USB in your other computer and import bookmarks 

  • How can I move contact from one group to another?

    HOW CAN I MOVE A CONTACT FROM ONE GROUP TO ANOTHER GROUP?

    You usually make ​​contact groups via a computer (Mac or PC). If you use a mac and sync. via iCloud, you can go into Contacs.app and organize your contacts as you wish. Then (if) you sync with iCloud the groups you've changed or created will be displayed on your iPhone and (or) iPad.
    Hope this helped you.

  • How can i move settings from one user to another?

    How do I move all settings and permiions from one user to another?

    http://discussions.apple.com/thread.jspa?messageID=11320719&#11320719
    http://discussions.apple.com/thread.jspa?messageID=12317222
    http://discussions.apple.com/thread.jspa?messageID=6331229

  • Help with lists and Numbers - how can I separate data from one column?

    I have a series of data entries that have two or three pieces of information listed in one column (it was a list copied from the Internet). My data is in this form all in one column (ie Column A):
    XXXX -- YYYY, ZZZZ
    I want to be able to easily split that data into three columns (A, B, and C) without having to go through and manually separate all of the entries? I'd ideally like to have XXXX in one column, the '--' removed, YYYY in another column, and ZZZZ in a third column, like this:
    Column A Column B Column C
    ====== ====== ======
    XXXX YYYY ZZZZ
    Is this possible? Any help is appreciated.

    BlooGoo
    Open or paste your material in your favorite texteditor. TextEdit will suffice but there are better applications. Make sure your material is consistent, especially that there are no stray characters or extra spaces studded in the text. You can do this by using the clean up routine as described below.
    1. Copy the set of characters you want to replace. In this case " -- " Note that there are spaces on each side of the dashes and you want to get rid of those.
    2. Open the *Find and Replace* dialogue:
    +Menu > Edit > Find > Find…+ (or command f)
    Paste the " -- " into the Find: field, then type a comma in the Replace: field or
    Copy and paste a tab from the document or
    Click on the Advanced button and enter a tab using the Insert… button that appears.
    3. Click *Replace All.*
    Repeat as necessary. If it doesn't seem to work, copy and paste the bits that stick, usually there is something not visibly different but different as far as the computer iust concerned.
    When you are finished save the results as a comma or tab delimited delimited .txt file and reopen it in Numbers.
    Peter

  • How can I move clips from one library to another? Clips are still in original drive and not in new drive.

    I am using iMovie 10.0.7 on a 1-week old iMac 27" running Yosemite 10.10.2. I migrated from iMovie 9 on a 2008 iMac running Snow Leopard and updated the libraries and events, etc.
    I have two external drives connected via USB. I want to move / consolidate the library and clips from one of the external drives to the new iMac's 3TB fusion drive. This is to make room on the external drive to run Time Machine backups.
    Apple's instructions on managing libraries and moving/copying clips/events tell me to drag to move between libraries and to Option-drag to copy. However, simply dragging only copies. I find that if I Command-drag the events/clips, I can "move" them. But when I look outside iMovie in the Mac OS X Finder, the event folders and clip files themselves are still sitting in the original drive.
    I'm very perplexed as to how to really move the clips and event structure. Should I manually copy the clips and event folder structure outside of iMovie? I worry I will mess up iMovie's internal record keeping and folder structure information.
    Thanks in advance.

    Ahh, Ok. I actually had to go to Lynda.com to watch a training video of this highly bassackwards maneuver, but now I have it. In other words, while the intuitive thing is to make a new event to hold the clip you want and then open the old event and drag the clip into it's new event, the only way to accomplish this maneuver is to NOT create a new event, but rather, go to the clip AFTER the one you want to move, select it and then Right-Click on it and select SPLIT EVENT BEFORE SELECTED CLIP (or go to FILE>SPLIT EVENT BEFORE SELECTED CLIP). Then you wait a few seconds while the program thinks a bit (no feedback it is doing this - just a pause) and then it automatically creates a new event with the clip you wanted. Now just double-click the new event and name it something meaningful.
    Thanks for your help!

  • Can apple move data from one macbook to another?

    I have a macbook and will be buying a macbook pro. My question is can apple store move all the data from a macbook to a macbook pro?

    Migration Assistant will work, but Setup Assistant is much better. 
    See Using Setup Assistant on Lion.

  • How can I move file from one path to another   by java

    Hello
    I need to move the following file c:\abc\aa.txt
    to the follwing path c:\def
    How can i do it by java program?
    Regards

    Hi,
    Try the following code:
    boolean moveFile = new File("c:\\abc\\aa.txt").renameTo(new File("c:\\def",
    new File("c:\\abc\\aa.txt").getName()));
    Hope that helps.
    Savitha.
    OTN group@IDC

  • How can I transfer data from one phone to another

    I have a damaged iPhone 3 and am trying to transfer data to another iPhone 3.  How can I do that?

    take a look at the link   http:///support.apple.com/kb/HT2109

  • How can I move photos from one website to another website?

    I can't seem to get how to move my photos and pictures I find on the web to another website or my blog. Uupload, download ...it's all Greece to me. No offense intended.

    Are your photos in iPhoto or are they stored in folder on your iMac?
    Firstly, the two Macs need to be connected, either via ethernet or wirelessly, on the same network.
    The same can be achieved by copying the photos from your iMac to an external hard drive and then to your MBP.
    You can copy the entire iPhoto library over to your MacBook Pro and replace the existing iPhoto library in the Pictures folder. (Do you have photos in the iPhoto Library on your MBP?)
    It is also possible to have more than one iPhoto Library, by giving the library on the iMac a new name, and then copying it over.

  • Can we move data from one ITABLE to Another ITABLE

    DATA : T_PR1 TYPE TY_PR OCCURS 0 WITH HEADER LINE.
    DATA : T_PR2 TYPE TY_PR OCCURS 0 WITH HEADER LINE.
    DATA : T_PR5 TYPE STANDARD TABLE OF TY_PR,
           WA_PR5 TYPE TY_PR.
    There is one record in T_PR1 and another in T_PR2.
    I want to move them both into T_PR5.
    When I do as below, it is overwriting the record of T_PR1 and
    it is accepting only one record from the T_PR2.
    T_PR5[] = T_PR1[].
    T_PR5[] = T_PR2[].
    Move does not work here as its structure should be same.
    Is there any way that i can move these 2 records into T_PR5.
    It is necessary for me to use T_PR1 and T_PR2 with header line.
    Any suggestion will be apprecaitaed!
    Regards,
    Kittu

    Hi,
    You can append the contents of both the tables into a work area and then loop through it to move the contents into the third table.
    Hope this helps.
    Regads,
    Deepthi.

Maybe you are looking for

  • Urgent: RV_INVOICE_CREATE - With Posting significance

    Hi everyone. I am trying to use the RV_INVOICE_CREATE and RV_INVOICE_DOCUMENT_ADD to create a billing doc. Both these function modules have a parameter WITH_POSTING. 1. Can anyone tell me what is the significance of this parameter. 2. What are the po

  • MRP type "VB" components generated dependent reqt. after MRP by sales order

    Good morning to all SAP gurus         I hav scenario for mech. industry where we r going to implement MRP run , having FERT which is MTO scenario and " PD" MRP type.and its BOM components having MRP type "VB" with no strategy type. At MRP run after c

  • Mac Mini compatible bluetooth headset

    Does anyone know if any bluetooth headset is compatible with the Mac mini?

  • Report failure

    When I run a report in Crystal console, we have an option to use either "Use original database logon information from the report"  (Option1) or "Use custom database logon information specified here" (option2). When I  use option1, report gets execute

  • Web Client Documents

    Hi, Can anyone forward me Webclient Doc. And even please forward me some important docs which r mostly usefull in CRM. Forward at [email protected] Regards, divya