Trying to add 1 to db cell, but instead it adds 14million!

HI,
I am trying to add "1" to a cell in a db, but instead, it adds like a million.... I'm confused, here is the code which does it, it would be awesome if anyone can help! Thanks
String sql2 = "SELECT * FROM users WHERE ID = "+jnum+"";
upd = stmt.executeQuery(sql2);
upd.first();
int crold = upd.getInt("cr_used");
int crnew = crold + 1;
upd.updateInt("cr_used", crnew);
upd.updateRow();
crold is the old value which I want to add "1" to. crnew is the value which is one higher than crold (at least that's what i am trying to achieve!) instead my db cell value goes up by over 1 million.
thanks.

You are using the JDBC-ODBC bridge with Microsoft Access, no? I had similar results, although my garbage number would change if I changed my program around. I reported it as a bug but the response was that it was my fault. I don't think so, and I don't think it's your fault either.
My solution was to change the program to update via SQL Update statements.

Similar Messages

  • I am trying to white balance my acquired image, but instead get a green image, has anyone encountered such a problem?

    Similar to Vision's white balancing utility, my VI allows the user to draw an ROI around a region and ideally reset the red, green, blue gains to make the area white. When I make red, green, and blue values equal one another, instead of white, I get a green region. Has anyone else had this problem or know if I am doing something completely wrong?
    Or has anyone tried doing this already and knows of a white balancing algorithm that works?
    Thanks in advance.
    - josh

    Hi Chris,
    I'm using IMAQ ColorImageToArray and I've checked with IMAQ IntegerToColorValue that I'm getting the correct RGB values. I can post my code, however, I am using a QImaging camera which only uses their own VIs to do functions similar to IMAQ functions such as grab setup, grab acquire, initialize, close. The VIs can be downloaded here: http://www.qimaging.com/support/downloads/.
    Thanks again for the help.
    Attachments:
    whitebalance.vi ‏113 KB

  • I have garage band ver 10.0.2 and am trying to add effects to an audio track but i have no info button or track info under the track tab.  How do i get these things to show up on my program?

    I have garage band ver 10.0.2 and am trying to add effects to an audio track but i have no info button or track info under the track tab.  How do i get these things to show up on my program?

    In GarageBand 10.0.2 you can no longer add all kinds of effects freely; this GarageBand '11 feature has been discontinued. Pick one of the predefined patches that already has the effects you want.
    However, you can add effects from the predefined audio units.
    You'll see the predefined effects on the track, when you open the Smart Controls. To add audio units, click the button and enlarge the the smart controls pane by dragging the dividing line to the Track Area upwards.

  • HT1176 I am trying to add my iPhoto library to files to be backed up on time machine. I am told to click on the Options Minus butto, but it is greyed out. What is the solution ?

    I have been trying to add my iPhoto Library to files for time machine backup.
    I was instructed to click on the Options minus button - but it is greyed out and not functional. 
    What is the solution ?
    Your help will be much appreciated.
    Thank you.
    Roberto Kay 

    You can "see" the iPhoto library in Time Machine backups, but you cannot "open" the library or "browse" the contents while you are in Time Machine.
    Apple makes you restore the entire iPhoto library to another destination...like your desktop....if you want to retrieve a few older images that you may have deleted by mistake.
    This is a convoluted mess, but unfortunately, that is the way it is.
    See Pondini's excellent, detailed information on this:
    http://pondini.org/TM/15.html
    You might also want to post in the iPhoto support area to see if the experts over there might have a workaround for you. I cannot find one, but I'm not an iPhoto expert.
    iPhoto

  • I have four devices on one Apple ID, i have separate emails and phone numbers for each device but when I tried to add one to my iPod, it said that the email was already in use.

    I have four devices on one Apple ID, i have seperate emails and phone numbers for each device but when I tried to add one to my iPod, it said that the email was already in use.  I have tried many things and the only guess I have is that either someone else has this email as their iMessage but is fake or it wasn't taken off my old iPod when I reset it.  Any ideas on what to do?

    Thanks but that doesn't give me the information I need.  I am putting an email on my ipod for people to contact me for iMessage and FaceTime but when I put the email in, it gives me an error saying that the email cannot be veirified because it is already in use.  My Apple ID can be varified, just not the email that they will contact me with.

  • I am trying to add my sons email address to our family apple id but it says that it already associated with another apple id. How can i find out what the apple id is and take his email address off that one?

    I am trying to add my sons email address to our family apple id but it says that it already associated with another apple id. How can i find out what the apple id is and take his email address off that one?

    You may be able to find your Apple ID at Look up your old and forgotten Apple ID

  • I got an itunes giftcard for my birthday and when i tried to add it on my balance on my ipod touch it says the code you entered is not  recognized as a valid code. but i just got this card brand new for my birthday.

    i got an itunes giftcard for my birthday and when i tried to add it on my balance on my ipod touch it says the code you entered is not  recognized as a valid code. but i just got this card brand new for my birthday.

    Make sure you're using the correct code. For most iTunes cards, the code is under the scratchoff area on the back of the card. For more information, see this support article:
    http://support.apple.com/kb/TS1292
    If you can't get to work after perusing that page, contact the iTunes Store Support; instructions are at the bottom of that article.
    Regards.

  • When trying to add music to a slide show from my PC to TV through Apple Tv the photos are fine but I get an error message that says the music cannot be downloaded.

    When trying to add music to a slide show from my PC to TV through Apple Tv the photos are fine but I get an error message that says the music cannot be downloaded.

    Because the location for each song in your library is on your hard drive.  If the hard drive isn't there, how can iTunes play it?
    You'll have to move/copy the music from your hard drive to your computer's hard drive.
    Basically, EASIEST way to do all this, if you don't care about your play counts, etc...
    -Delete EVERYTHING from iTunes, so that your library is now empty.
    -Go to "Advanced" inside of the "Preferences" window, found in the "Edit" drop-down.  You can also access Preferences by pressing Ctrl+, (Press Ctrl and the comma key)
    -Change your iTunes Media Folder Location to something simple, but on your computer. I use C:/iTunes.  Make sure "Keep iTunes Media Folder Organized" and "Copy files to...." are both checked.  You can close Preferences now.
    -Now, drag and drop your music from your hard drive into your iTunes library.  iTunes will automatically add the music to your library, as you would expect, and also creates a copy of each file to place into that iTunes Media Folder you just created.
    Shouldn't have any more problems...

  • I am trying to add a bookmark in safari ios7, but when I tap the box/arrow up button nothing happens and no options appear on screen to be able to add a bookmark.  In fact the screen freezes, can smeone please help?

    I am trying to add a bookmark in safari ios7, but when I tap the box with the upward arrow no options appear anywhere on screen to add a bookmark.  In fact the screen freezes and I have to close safari to be able to unfreeze it.  What is wrong, can anyone please help me?  Thanks

    please ignore this question, I added the ios7.0.2 patch and the bookmarks can now be added through the action icon.  cheers

  • HT2495 I have a wirless network. I connect all my computers to it and a printer. I can print wirelessly from all computers. I tried to add the printer to my new Macbook, but can't find the printer on the add printer and scan icon on preferences.

    I have a wirless network. I connect all my computers to it and a printer. I can print wirelessly from all computers. I tried to add the printer to my new Macbook, which is connecte to the network, but can't find the printer on the add printer and scan icon on preferences. I downloaded a installation printer utility from the Manufacturer (lexmark), but it didn't work. Any sugestions?
    Thanks,
    Ivette

    You would need to get the IP address of your printer then manually add a network print queue.
    To get the IP address, on the control panel of your printer, press on Setup > Network Setup > TCP/IP > View/Set IP address.

  • HT5022 I'm trying to add a "new client" to my wireless network using Airport Utility, but I can't find that option in the new version.  I've downloaded all available updates of the OS and the utility..  Help!

    I'm trying to add my HP wireless printer as a "new client" to my wireless network using Airport Utility, but I can't find that option in the new version.  I've downloaded all available updates of the OS and the utility..  Help!

    Why would you need to ADD a new Client. Unless the APE sytem is completely different then any other Wireless router the printer should get an IP address from the router. That is IF the printer is setup to get an IP from the LAN DHCP server.
    Now you may want to make that IP it does get a Staticly assign IP address so it never changes, which will screw up printing if it does change. But i don't know if you can do that with APE routers.

  • I am trying to add an updated version of a PDF eBook to iBooks but I'm told it already exists.

    Hi There,
    I'm using iBooks on Mavericks, primarily prior to syncing books to my iPad.
    I often upload both the ePub and PDF versions, as a lot are technical books, with diagrams in them.
    Anyway, I received the final versions of a recently released book on SharePoint, after earlier only having the pre-release version, which only came in PDF.
    So I deleted the old PDF version, from the eBooks Library, added the ePub Version, but when I try to add the PDF version, it continually tells me that the PDF version still exists, and refuses to add it. They are named the same. It doesn't appear to still exist in the iBooks library or any collection, and what's more the message appears in a loop - it continues to appear repeatedly even though I've just tried to add the book once.
    This is very frustrating. Any suggestions?
    Cheers,
    Trevor

    Hi All,
    I think I've solved my problem, but it wasn't obvious. I deleted the old PDF version of the book, and I'm not sure where it went. Only when I was in the "All Books" view and I filtered by part of the book name did it appear, and it becamse obvious that the old version was still in iBooks, and I realized that deleting the old version of the PDF is a two step process, unless you delete it directly from the All Books View, when the Delete option becomes Delete from Library.
    Solved now, but I think the UI needs some work, as it's far from clear enough at this stage. I don't think it's at all obvious how I ended up in the pickle I was in, and just repeating an error message in the way it did is not satisfactory.
    Cheers,
    Trevor

  • I am using Numbers on my iPhone5 and cannot get the app to do a simple (SUM) calculation.  It shows the formula correctly in the cell, but all I get for my long list of numbers to add is 0.  How can I get this to work?

    I am using Numbers on my iPhone5 and cannot get the app to do a simple (SUM) calculation.  It shows the formula correctly in the cell, but all I get for my long list of numbers to add is 0.  How can I get this to work?

    Oaky, at least we got that far.  Next step is to determine if all those "numbers" are really numbers.  Changing the format to "number" doesn't necessarily change the string to a number. The string has to be in the form of a number.  Some may appear to you and me as numbers but will not turn into "numbers" when you change the formatting from Text to Number. Unless you've manually formatted the cells to be right justified, one way to tell if it is text or a number is the justification. Text will be justified to the left, numbers will be justified to the right.
    Here are some that will remain as strings:
    +123
    123 with a space after it.
    .123

  • I just made the switch to mac. I am have installed all the new PS6 CC and bridge and I am now trying to add some presets to my  ACR but when I search for the folder to place them it is not there.  From what I researched it says it should be under camera l

    I just made the switch to mac. I am have installed all the new PS6 CC and bridge and I am now trying to add some presets to my  ACR but when I search for the folder to place them it is not there.  From what I researched it says it should be under camera library/application support/adobe/camera raw/settings but I can only get to library/application support/adobe/ and then there are two different camera raw options I have checked both and there are not settings folder. If anyone can help me please thanks

    Apple most likely has the same poor taste that Microsoft does when it come to defaults.  Microsoft likes to hide things like  settings, preset, folders etc from normal users  think the dumb or something else.  If Apple also hide things you will have to  make some system setting changes that will allow Finder to do it job and find it for you.

  • Trying to Add Adobe Media Encoder in Creative cloud licenses but its not coming up, is media encoder bundled with another adobe product?

    Trying to Add Adobe Media Encoder in Creative cloud licenses but its not coming up, is media encoder bundled with another adobe product?

    You MUST have a 64bit computer... what is your computer?
    Adobe's MINimums http://helpx.adobe.com/premiere-pro/system-requirements.html
    -Programs won't display if they will not install on your computer
    -http://helpx.adobe.com/creative-cloud/kb/all-apps-displayed-aam.html

Maybe you are looking for

  • Multiple iPhone 4's on one iTunes

    When we updated our phones to the new iPhone 4 and registered them onto iTunes, all of our apps combined. This did not happen with our 3G phones. How do I fix this? Also, iTunes is all of a sudden not showing the name I gave my phone and just listing

  • How to make a screen field as selected when we place the cursor in the fiel

    Hi,    I have a requirement like, needs to be automatically select a screen field value when i place the cursor in that field.     The screen field value should be displayed in blue color as like we select the value using shift-end. when a new value

  • Stress test tool for EBS

    Hi Hsawwan, other EBS APPS dba's! We are trying to predict some performance according future load on EBS. This is classic stress test techniques. We want to automate stress on APPS side and run some requests and forms as well.... With "Load runner" w

  • Style selector not working...

    Why does the mx|ToggleButtonBar style selector not work in the following code? <?xml version="1.0"?> <!-- Simple example to demonstrate the Halo TabNavigator layout container. --> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"               

  • PhotoCDs (PCD)

    OK, before anyone shoots me, I know this has been asked a million times on this (and many other formats) BUT..... What are the best settings within CS4 for importing PCD files? I have about 400 archieved photos which I wish to re-archieve in a better