MS Access and  querries

MS Access has a feature of creating querries to access only parts of a table. My question is there a way to retrieve those querries or run them to retrieve that specific data?

hi ,
i'am trying to update my database which resides on the server as of now.. The database being Microsoft access .. I defined the field type in access but when i run a servlet thru my .html file it is not updating the my database ... i'am using apache tomcat for this ....Instead it is giving me NUll Pointer exception..... here is my code plzz let me know where am i making an error.....
import java.sql.*;
import java.io.*;
import java.text.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class TestServlet extends HttpServlet
     private Connection con;
     private PrintWriter out;
public void init(ServletConfig config) throws ServletException
super.init(config);
String dataSourceName = "LAVS";
String dbURL = "jdbc:odbc:"+dataSourceName;
     try
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");//Load JDBC-ODBC Bridge driver
Connection con = DriverManager.getConnection(dbURL,"","");// set this to a MS Access DB
catch( ClassNotFoundException e){System.out.println(" JDBC-ODBC "); }
     catch(SQLException e){System.out.println(" sql exception ");}     
     }//end of init
     // doPost Method is called in response to the Post Request
     public void doPost(HttpServletRequest req,HttpServletResponse res) throws ServletException
     try {
          Statement stmt ;// used to access database     
          ResultSet rs;// used for databae access
res.setContentType("text/html");//Set the content type of the data to be sent back to the client.
          PrintWriter out= res.getWriter();//Get an output writer object to send data back to the client.
          stmt = con.createStatement(); //Get a Statement object
String FirstName = req.getParameter("FirstName");//Get the incoming data parameters from the client
stmt.execute("insert into TEST12345 values(' "+FirstName+" ')");
//stmt.executeUpdate("INSERT INTO TEST12345("+"FirstName) " + " VALUES('"+ FirstName+"')");
          out.println("<HTML>");
          out.println("<Body>");
out.println("<h1> DATABASE UPDATED </h1>");
out.println("</Body>");
out.println("</HTML>");
          System.out.println("Database updated");
stmt.close();
          con.close();     
          catch (Exception err) { System.out.println(err);}
}//end of doPost
}//end of TestServlet
Thanks in advance ....

Similar Messages

  • I have a late 2012 iMac running osx 10.8.5.  I keep losing access to my internal hard drive.  I can reboot and regain access and it will last for a few minutes or hours.  Disk utility does not seems to help.

    I have a late 2012 iMac with an I5 precessor running OSX 10.8.5 and a 1tb internal hard drive.  I keep losing access to the internal hard drive/startup disk.
    I can reboot and everything operates as normal for a few minutes or hours but then I lose all access again to anything on the hard drive.  The computer is still up and running but no files can be accessed and certain websites cannot be acessed even though internet access appears to be normal.  Disk utility can only find permission errors related to iTunes which can be repaired only to come back at the next scan (I would not think permission errors would have anything to do with the hard drive crashing).  It does not seem to matter what program I am using at the time access is lost and it can lose access sometimes right after reboot when no program is running.

    You will need to boot into the Recovery Volume (command - R on a restart or hold down the option/alt key during restart and select it) to run Disk Utility/Disk Repair.

  • MS Access And Forms

    I m working on a project where i was first having oracle as database but due to customer requirement he want ACCESS
    But i dont know how to connect to access and forms
    PLS HELp
    Its Urgent

    Sumit,
    Forms 9i and above no longer support ODBC conenctions to Access.
    Frank

  • I transferred files from a NAS server to the Mac Mini Snow Leopard Server and now some of the files have Custom Access and can't  be opened by some users.  How do I fix this?

    We're setting up our Mac Mini Snow Leopard Server, and in the process transferred files that had been stored and accessed from our Blackarmor NAS server over to the Mac.  These files were all created on PC's and are Office Excel files, WordPerfect files or PDF's.  When you look at the files on the Mac from the Mac and bring up Get Info for the affected file, it says that the file has Custom Access.  The files that work properly don't have that configuration.  I can access and open the files on some computers, but some users can't open the files from their computer even though they can see it.  We're all using PC's and they get the Error:  Access Denied-Contact your administrator--or something similar.  I've seen on the web similar issues and it may have something to do with ACL permissions.  I don't know enough about Mac OS to understand this, but what is baffling is that they can be opened from some PC's but not others, and all of the Users have the same accessibility to the files.  Thanks for a solution!!

    Oh, on the losing Internet, try this...
    Make a New Location, Using network locations in Mac OS X ...
    http://support.apple.com/kb/HT2712
    10.7 & 10.8…
    System Preferences>Network, top of window>Locations>Edit Locations, little plus icon, give it a name.
    10.5.x/10.6.x/10.7.x instructions...
    System Preferences>Network, click on the little gear at the bottom next to the + & - icons, (unlock lock first if locked), choose Set Service Order.
    The interface that connects to the Internet should be dragged to the top of the list.
    Instead of joining your Network from the list, click the WiFi icon at the top, and click join other network. Fill in everything as needed.
    For 10.5/10.6, System Preferences>Network, unlock the lock if need be, highlight the Interface you use to connect to Internet, click on the advanced button, click on the DNS tab, click on the little plus icon, then add these numbers...
    208.67.222.222
    208.67.220.220
    Click OK.
    PS. Your English is quite good & completely understandable.

  • Setting Opportunity Access and Contact Access to null in Account Team

    Hi,
    We can set the the Opportunity Access and Contact Access to blank/null manually in the application but is it possible to set these to blank using import?
    Thanks,
    Teena

    Hi,
    Thanks for the reply. We have tried updating a record through Account Team > Import > Overwrite Existing Records where the Contact Access and Opportunity Access fields were blank. The import was successfull but the fields were not updated, they are still set to Full access. We used the Account EUID in the import file.
    Regards,
    Teena

  • I changed apple Id but old Id was to an email I can't access and now I can't change apple I'd in I phone

    I changed apple I'd to new email on line and when I went to change I'd in phone it still has old I'd with email I can no longer access and I don't remember old password. How can I reset set it in icloud with new I'd?

    You need to call Apple at 1800myapple or check your rescue email.

  • Account access and permissions issue

    When I try to synch my iPod, I am informed that I will lose my purchased music because my computer is not authorized. When I attempt to authorize the account in iTunes, I get an error stating that the required file is not found or permissions error. My apple account is easily accessed and can be used for purchases, but not for synching. I have tried deauthorizing my second computer and have checked for permissions errors, but can find none. I asked this question in the iPod section with no answers--it would appear to be a system problem rather than an iPod issue. Thanks for any ideas on how to solve this puzzle.

    One of the following articles should help you:
    iTunes- Missing folder or incorrect permissions may prevent authorization
    iTunes repeatedly prompts to authorize computer to play iTunes Store purchases

  • Can you access and store two itunes libraries on one computer?

    can you access and store two itunes libraries on one computer?

    Welcome to the Apple Community.
    Yes but you may run into issues if you want them both to run iTunes Match or automatic downloads.

  • HT204053 How do I delete an old apple ID on my I phone and replace with my new one. The old one keeps giving me updates that I can't access and want it deleted

    I have my ex apple id that we shared on my I phone and created new account. How can I delete his apple id on my I phone since I keep getting update notifications for updates of apps installed on my phone and I can't access and want the updates to stop. Please help!!! Thank u

    Welcome to the Apple Community.
    In order to change your Apple ID or password for your iCloud account on your iOS device, you need to delete the account from your iOS device first, then add it back using your updated details. (Settings > iCloud, scroll down and hit "Delete Account")

  • I am sonu v s from india...i am a apple id user...now i have a problem regarding this apple ID...i forget my apple ID security Qn...so i can't access and purchase any apps by using my apple ID..4 tms i frwd my reqst using itune apps store bt no solutn

    I am sonu v s from india...i am a apple id user...now i have a problem regarding this apple ID...i forget my apple ID security question...so i can't access and purchase any apps by using my apple ID..4 times i frwd my reqst using itune apps store but i can't get any solution....many times i my try to call u bt there is no response from ur custmr support group...pls kindly give me any solution

    Contact the App store for Apple ID help. Their support link is on the right of the App store window
    LN

  • My account was accessed and unauthorized changes made by We R Wireless

    I recently became a ware of a very serious issue and have been getting little assistance from Verizon.  My account was password protected and had only 3 people identified as having the ability to make changes on my account.  I received a notice from Verizon regarding a change made on one of my lines.  Upon review it was an unauthorized change to add "Total Mobile Protection" to one of my lines for $9.00 a month.  Also in this notice was a credit which I was entitled to for a $10.00 Active Promotion.  I believe this credit was placed on the account so that the change might slip by unnoticed.   When I looked into the change it was made by a Representative from We R Wireless in Ship Bottom NJ.  I have never been to this store nor have I spoken with anyone ever at this store.
    After calling the store and confirming my account was accessed and unauthorized changes made, I was told by the manager that an employee had in fact accessed my account and made those changes.  I still could not understand how it was possible for the changes to have been made without my password.  The activity certainly looked very suspicious and I figured it had to do with commission to the representative for adding the insurance plan.  This was denied multiple times by the manager of the store as well as the District Manager.  In the meantime I had received multiple emails from We R Wireless in their attempts to "Make this go away"
    What came next was the most disturbing and upsetting part of this situation.  I was told by the District Manager of WE R Wireless that my information they had collected years ago during a purchase of a phone and activation INCLUDING MY PASSWORD and that they had kept it in their system!!
    WE R Wireless had shared my personally identifiable information and Password to my account with Sales representatives at the Ship Bottom WE R Wireless store  and that was how they accessed my account!!
    As you can imagine I have now been receiving multiple calls from The Director of Retail Operations, Musafa as well as the Director of Operations, Jimmy.  They are attempting to sweep this under the carpet and it is inexcusable and unacceptable.  The reason for this post is to WARN others who may have made purchases at anytime at a We R Wireless store that they KEEP YOUR PASSWORD and employees are given the Passwords and have made changes to accounts.  I cannot believe that I am the only one that this has happened to and I am concerned this is a widespread breech and more importantly is ILLEGAL.
    I will keep this Board updated with developments but can tell you so far Verizon has not been very responsive to my concerns but this is unacceptable and I am thinking of contacting the FCC as well as an Attorney.  In this day and age of Identity Theft this situation must be addressed by Verizon whether or not this was one rogue employee or not our PASSWORDS and other Information should never be shared nor kept without our knowledge.
    >> Edited to comply with the Verizon Wireless Terms of Service <<
    Message was edited by: Verizon Moderator

    I can only tell you that the Verizon rep from the Fraud department as well as Verizon's legal department contacted me and said under no circumstances are these companies to retain Customer Passwords.  As you can see look at the potential for issues as evident in this situation.
    As far as the FCC and their responsibilities this is directly from the website
    The Federal Communications Commission regulates interstate and international communications by radio, television, wire, satellite and cable in all 50 states, the District of Columbia and U.S. territories. An independent U.S. government agency overseen by Congress, the commission is the United States' primary authority for communications law, regulation and technological innovation. In its work facing economic opportunities and challenges associated with rapidly evolving advances in global communications
    The agency investigates consumer issues such as Cramming which has occurred here if you go to the site you will see some of the recent fines for cramming levied by the FCC and it is a huge issue.  A consumer does not get involved in legal fees the FCC is responsible to investigate consumer claims of fraud and regulates the industry.  The Attorney General also takes this very seriously as well.
    Cramming - Unauthorized Charges on Your Phone Bill
    Cramming Settlement for Consumers Announced
    Dec. 19, 2014: The FCC, along with the FTC and state attorneys general, announced a $90 million settlement with T-Mobile regarding unauthorized charges - commonly known as "cramming" - on phone bills.
    Current and former T-Mobile wireless customers should review their bills and apply for refunds if they suspect third party charges were wrongly added to their bills at www.t-mobilerefund.com/
    Sent from my iPad

  • I have a production mobile Flex app that uses RemoteObject calls for all data access, and it's working well, except for a new remote call I just added that only fails when running with a release build.  The same call works fine when running on the device

    I have a production mobile Flex app that uses RemoteObject calls for all data access, and it's working well, except for a new remote call I just added that only fails when running with a release build. The same call works fine when running on the device (iPhone) using debug build. When running with a release build, the result handler is never called (nor is the fault handler called). Viewing the BlazeDS logs in debug mode, the call is received and send back with data. I've narrowed it down to what seems to be a data size issue.
    I have targeted one specific data call that returns in the String value a string length of 44kb, which fails in the release build (result or fault handler never called), but the result handler is called as expected in debug build. When I do not populate the String value (in server side Java code) on the object (just set it empty string), the result handler is then called, and the object is returned (release build).
    The custom object being returned in the call is a very a simple object, with getters/setters for simple types boolean, int, String, and one org.23c.dom.Document type. This same object type is used on other other RemoteObject calls (different data) and works fine (release and debug builds). I originally was returning as a Document, but, just to make sure this wasn't the problem, changed the value to be returned to a String, just to rule out XML/Dom issues in serialization.
    I don't understand 1) why the release build vs. debug build behavior is different for a RemoteObject call, 2) why the calls work in debug build when sending over a somewhat large (but, not unreasonable) amount of data in a String object, but not in release build.
    I have't tried to find out exactly where the failure point in size is, but, not sure that's even relevant, since 44kb isn't an unreasonable size to expect.
    By turning on the Debug mode in BlazeDS, I can see the object and it's attributes being serialized and everything looks good there. The calls are received and processed appropriately in BlazeDS for both debug and release build testing.
    Anyone have an idea on other things to try to debug/resolve this?
    Platform testing is BlazeDS 4, Flashbuilder 4.7, Websphere 8 server, iPhone (iOS 7.1.2). Tried using multiple Flex SDK's 4.12 to the latest 4.13, with no change in behavior.
    Thanks!

    After a week's worth of debugging, I found the issue.
    The Java type returned from the call was defined as ArrayList.  Changing it to List resolved the problem.
    I'm not sure why ArrayList isn't a valid return type, I've been looking at the Adobe docs, and still can't see why this isn't valid.  And, why it works in Debug mode and not in Release build is even stranger.  Maybe someone can shed some light on the logic here to me.

  • How to backup files to ensure future access and use using a different mac

    I recently attempted access backed up data on my LaCie drive from a different Mac notebook. I was blocked. I didn't write down the message, but it essentially advised that the data was locked and I wasn't allowed access. I wasn't given a chance to enter any kind of system password to bypass the lock.
    Here is my problem: I recently spilled some wine into my keyboard. Since then, the system has slowed to a crawl and occasionally weird things begin to happen, regardless of which software I am using [eg iPhoto, Quickbooks, idvd, Photoshop, email, and even dashboard]. I know I am very lucky to have any access to my files at all. While I do, I need to back everything up so that I can have access to my files later on. I plan to have my Mac serviced this week. I don't know if it needs to be replaced, or whether it can be repaired.
    *+If it can't be repaired, how do I back up my files to ensure future access and use using a different mac?+*

    I'll check the example you linked. I appreciate you responding.
    I was not trying to boot another system at all. Actually, I was working on a newer mac laptop. I attempted to load a dvd I had created in my idvd on the other mac from the LaCie. I was using a mac because I knew it had all the iLife software I needed in order to work with my idvd components. Honestly though, I don't know if the mac I was using is intel based. I hadn't considered it. Does Apple sell macbooks with intel? No matter.
    So, let's see -- I was using the other powerbook to read the LaCie via firewire -- and yes, the LaCie has its own power supply.
    If I remember correctly, the denial I received [when attempting to load the idvd file] knew that I had created it. I got the feeling that it wasn't allowing me into the file for security reasons. I just don't remember setting security. Incidentally, I just checked and I do not have a master password set nor do I have FileVault protection turned on.
    I'll check that link you sent. Thx again, M~

  • How do I access and use my Itunes library from a different/new computer?

    How do I access and use my Itunes library from a different/new computer?  My computer is no longer working, so I need to be able to access my library from my wife's computer.

    Your library will only be where you put it.  Copy everything from your backup copy of your old computer to the new one.
    You can redownload some itunes purchases in some countries:
    Download past purchases - Apple Support

  • How do I access and use my iTunes library on a different computer?

    How do I access and use my i Tunes library on a different computer?

    The iTunes library is only where the user puts it.  If desired to have on an additional computer, put it there by copying the ENTIRE iTunes folder from the existing computer to the new computer.

Maybe you are looking for

  • How to Activate the iPhone?

    I got a new iPhone 3G S for christmas (unlocked). I travel back to the UK in a couple weeks when I'll get a compatible SIM card for it. For now I just want to play around with the non-phone features. Whenever I try to turn it on it asks me activate a

  • Cannot open any pdf files.

    I have uninstalled and reinstalled, tried the accept license with the eula.exe and still no luck. I have windows 7 home premium and the problem is with adobe reader 11.

  • Itunes freezes in windows vista

    i have a 32 bit os which i've read is not a problem. can anyone help me? itunes will maybe allow me to copy maybe one track onto ipod, then will not only freeze but i can't close or anything. plz help.

  • Providing sorting filters for a table in webdynpro java application

    ho to provide sorting  , filters , for a table in webdynpro java application .

  • Problem in Selecting elements in XSLT

    Hi, I have the following XML. <asx:values> <Seg1 A="a" B="b> <Seg1 A="c" B="d"> <Seg2 X="a" Y="b> <Seg2 X="c" Y="d"> </asx:values> Now i have the following XSLT. <xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:sapxsl="http://www