A very strange problem in microsoft access

Hi all,
Recently I wrote a simple java application which use microsoft access as the database. I connect the database sucessfully and I've even done the regular expression to filter the invalid text characters, everything works fine util I do the following SQL:
insert into test values 'client for updates'
Here test is my table name
I found this perticular string 'clent for updates' is very strange, it can't be inserted into the database, I try 'client for up' or something else, they all work.
Could anyone tell me what happened?
With my best,
Zike Huang(jim)

My problem is, even I've written the SQL in the correct syntax, in my java code, it just look like this
adc.SQL("insert into test(subject, content) values('" + sf.filter(subject.getText()) +"'"
                              + "," + "'"
                              + sf.filter(board.getText()) + "')" );
                              subject.setText("");
                              board.setText("");
where subject is a textfield and board is a JTextArea and sf is a string filter which use regular expression, I basically want to insert the string in these component into the database, Many strings work, but client for updates can't be inserted.
With my best,
Zike Huang

Similar Messages

  • More on a very strange problem in microsoft access

    Hi,
    I wish to describe this problem futher. I have a table named test, the table has a field named "content" and it's a memo type. I try to insert some strings in it, many strings work fine except when I insert this string
    client for updates
    I do some testing, event
    t for updates cannot be inserted in it.
    Can anyone tell me what happened?
    With my best,
    Zike Huang

    I just created a table in Access 2000 with a memo column and inserted the string "client for update" into it. NO PROBLEM. It's your code.
    Here's the Java I used to do it:
    import java.sql.*;
    public class MemoInsertTest
        public static void main(String [] args)
            try
                if (args.length > 1)
                    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                    String url = "jdbc:odbc:DRIVER={Microsoft Access Driver (*.mdb)};DBQ=c:\\Software\\Java\\Forum\\MemoInsertTest.mdb";
                    Connection connection = DriverManager.getConnection(url);
                    String sql = "INSERT INTO DOCUMENTS(SUBJECT, CONTENT) VALUES(?,?)";
                    PreparedStatement statement = connection.prepareStatement(sql);
                    statement.setString(1, args[0]);
                    statement.setString(2, args[1]);
                    int rowCount = statement.executeUpdate();
                    System.out.println("# rows inserted: " + rowCount);
                    statement.close();
                    connection.close();
            catch (Exception e)
                e.printStackTrace(System.err);
    }I created a table in Access with this schema:
    CREATE TABLE DOCUMENTS
       DOCUMENT_ID AUTOINCREMENT,
       SUBJECT     VARCHAR(80),
       CONTENT     MEMO,
       PRIMARY KEY(DOCUMENT_ID)  I'm running JDK 1.4.1 on Windows XP Professional.
    I say this works. Try it on your machine and see. - MOD

  • A very Strange Problem!!!help me!!

    i encounter a very strange problem, in EJB
    i write two EJB, one Stateless Session called A, and one Entity called B.
    i want to call B's findByPrimaryKey method in one A's Business, but failed!!!
    but when i remove the statement that performed the findByPrimaryKey method to A's setSessionContext method, It's Success!!!!!
    what the Problem, i am useing the Borland 's AppServer.
    who can help

    how u create the entity bean B from A?
    using proper lookup?
    can u try by write a small function inside bean A
    that contain proper lookup to Bean B...
    then try to call finbyPrimaryKey...
    now tell me is it working?
    or else can u give code or clear idea..
    if i can help u ,,,, sure i will
    do mail me
    [email protected]

  • A very strange problem in netbeans

    i debug a project in netbeans,a a very strange problem happens.
    a member variable was different between wtk20 and wtk22.and the variable was changed many places so it's hard to trace!
    but there hasn't the problem when i debug project in jbuilderx!

    My problem is, even I've written the SQL in the correct syntax, in my java code, it just look like this
    adc.SQL("insert into test(subject, content) values('" + sf.filter(subject.getText()) +"'"
                                  + "," + "'"
                                  + sf.filter(board.getText()) + "')" );
                                  subject.setText("");
                                  board.setText("");
    where subject is a textfield and board is a JTextArea and sf is a string filter which use regular expression, I basically want to insert the string in these component into the database, Many strings work, but client for updates can't be inserted.
    With my best,
    Zike Huang

  • Nokia 3250:A very strange problem...

    hi..i'm facing a very strange problem in my handset 3250.. i've upgraded its os but still there is problem: http://discussions.europe.nokia.com/discussions/bo​ard/message?board.id=smartphones&;message.id=9102#M9102 any idea about such type of problem.....

    MR.,
    what is firmware?? How can i have its latest edition??
    Can you help me because i too have the same problem:
    Problem 1:
    1-I install any software (e.g:snake game) through Application manager (Pc Suit) in memory card.
    2-I launch that software (snake game) just after installation it works properly.
    3-Now i switch-off the hand set and than switch-on it.
    4-I try to launch that software (snake game) again but it doesn't response.
    Problem 2:
    1:There is a image in my Memory card.
    2: I set that image as a wallpaper.
    3-Now i switch-off the hand set and than switch-on it.
    4-Wallpaper reset to default one.
    Problem 3:
    1-I install a theme through Application manager (Pc Suit) in memory card.
    2: I apply that theme in my hand set.
    3-Now i switch-off the hand set and than switch-on it.
    4- Now theme reset to default one.

  • ALV Grid - Very Strange Problem

    I am facing a very strange problem in ALV Grid. Our’s is a ECC5 system on SAP_APPL SAPKH50011 and SAP_BASIS SAPKB64016.
    I have implemented the ALV grid in a screen using classes. This grid by default appears in display mode however it can be switched to change mode and back to display mode using a custom button on the ALV toolbar. When the user clicks the change button the grid appears in editable mode. During the back and forth switching of the ALV between Change/Display modes the ALV grid control is not destroyed however the toolbar, fieldcatalog and ALV contents are refreshed.
    The data which is entered in an editable cell is validated using the data_changed event which has been implemented locally. If the validation fails an error message is raised using the message statement which is being issued correctly. Now when I correct the data and then click on another cell in the ALV grid the program is being aborted. Any clue why this is happening??

    Please check this code
    In the PBO of the screen set the field catalog and layout , i think this will help not to refresh the field catalog every time swtich between display and change mode
        set titlebar sy-dynnr with p_netwk.
        call method g_grid->set_frontend_fieldcatalog
          exporting
            it_fieldcatalog = gt_fieldcat[].
        call method g_grid->set_frontend_layout
          exporting
            is_layout = gs_layout.
        call method g_grid->refresh_table_display.
    2. Regarding program abort, please paste the first page of system dump

  • I have very strange problem with Iphone 3gs. Whenever it gets little hot or exposed to 30 degree temperature it losses signals (No service). Whenever it is cooled down the service is back. Please help!

    I have very strange problem with iphone 3gs. Whenever it gets little hot or exposed to 30 degree or above temperature it losses signals (No service). Whenever it is cooled down the service is back. Whenever I am using Skype or playing game for a while it losses carrier signals and wifi. When it is cooled down afer shutting down the carrier signals and wifi are back. It is for sure problem is with heating, but 30 degree tempeature in Oman is normal and some time it goes upto 50 degrees. I have noticed this has started after I started using substandard charger as I lost my original charger of the phone. Please help!! Thanx.

    The specifications define an operating range up to 35 degrees.

  • Very strange problem facing

    Hello All,
    I am facing very strange problem from last a week.
    I have made flex application using Flex3 and AMFphp.
    I was running very fine but just from before 7 days, my all images will not displayed in Mozilla Firefox browser.
    but it is running fine in Internet Explorer browser.
    any idea? I have tried to know what happen but i failed.
    Please help me to identify what's going wrong.
    Thank you.

    Have you tried emptying your cache?
    Dany

  • Very strange problem / Perpetual command key

    I've been using OS X since its inception, and have never had this problem before.
    Starting yesterday, I noticed a very strange problem that was happening randomly. When I clicked on an app in the dock, it would just reveal the app to me in Finder rather than opening it. Other problems including multiple selections when single-clicking on items with my mouse, and not being able to type. After some fidgeting, I realized that my iMac is acting like I'm always holding down the command (apple) key. If I have a window open, for instance, pressing the H (just by itself) key will hide the window. Pressing Q will quit whatever is active.
    I shut down, restarted, plugged in a different keyboard, used a different mouse, unplugged all my periphs, deleted all haxies and their attached files, and it still happened. I unplugged my 2nd monitor, and that seemed to fix it after another restart... but then I plugged in my 2nd monitor again and restarted, and now everything is fine. It's just happening randomly. I'm afraid to restart my Mac now. This is really bizarre!!!
    Someone please help!

    If it's any help, it started right after the following:
    When booted to Vista one night, I noticed ghosting on my nice new iMac screen which kinda irked me. I could see the menubar with the Spotlight menu icon burned into the screen.
    So when I got back into OS X I looked for a menubar hider. I tried Menushade and Menufela, both of which are quite old... probably before any mention of an Intel switch had ever occurred.
    But now I had a problem... no clock. So I went ahead and downloaded Yahoo! Widget Engine (aka Konfabulator). I know, I know... what a crazy workaround just to hide the menubar (this is why it would be GREAT if Apple would build in its own menubar hider option!)
    Anyway, this stuff started happening, so I deleted all of those apps (Menufela, Menushade, and Yahoo Widget Engine) with AppZapper (a great little app).
    Ugh... this is what you get for experimenting with homegrown apps, I guess.
    Anyway, hope that helps.

  • Very strange problem w/ iTunes PC

    Well, I have a very strange problem - I added some music to my iTunes and when I was changing the informations and cover, my iTunes crashed. When I restarted the program, the album is missing and when I found it on my hard drive, I am not able to import it back to the iTunes. This happens with both Import from the menu and the classic Drag/Drop method. So what to do? Is there any way to get it back?
    EDIT: Tried to move the files to another folder. Didn't work though.

    I just found the problem lies with iTunes 7.0.
    I ran the sames songs (ones with problem) into iTunes 4.7.1, with MSN messenger (same version)'s song display selected.....the song title/artist displayed and it did not get kicked out!!!!
    If it's not my 80gig iPod.......I would not have gotten iTunes 7.0!!!!!!!

  • A very strange problem encoutered in microsoft access

    Hi everyone,
    I have a access database set up and try to insert some record in it with JDBC, but some strange things happend. If I try to insert the string "client for update", it won't work, other string such as "client for", "client abc" ... will work. I really got a headache with this.
    I wish to thank an expert named "Mod", who give me an alternative solution which works perfectly. But I'm wondering why my code will not work. Here is my code:
    //Notes.mdb is my database
    //Test is my table
    //Subject is a field with Text type in Access 2000
    //Content is a field with Memo type in Access 2000
    import java.sql.*;
    public class MemoInsertTest{
    public static void main(String[] args){
    try{
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection connection = DriverManager.getConnection("jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=Notes.mdb");
    String sql = "INSERT INTO TEST(SUBJECT,CONTENT) VALUES('test8','client for update')";
    Statement statement = connection.createStatement();
    int rowCount = statement.executeUpdate(sql);
    System.out.println("# rows inserted " + rowCount);
    statement.close();
    connection.close();
    catch(Exception e){
    e.printStackTrace(System.err);
    Notes.mdb is my database which located at the current directory (the same directory of my java file above)
    After compile and run it, error information comes up:
    java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver]Optional feature
    not implemented
    at sun.jdbc.odbc.JdbcOdbc.createSQLException(Unknown Source)
    at sun.jdbc.odbc.JdbcOdbc.standardError(Unknown Source)
    at sun.jdbc.odbc.JdbcOdbc.SQLExecDirect(Unknown Source)
    at sun.jdbc.odbc.JdbcOdbcStatement.execute(Unknown Source)
    at sun.jdbc.odbc.JdbcOdbcStatement.executeUpdate(Unknown Source)
    at MemoInsertTest.main(MemoInsertTest.java:9)
    If, instead, I change that string to "client for", this time it works, the result is printed out:
    # rows inserted 1
    I hope someone will explain this problem for me. Thank you all.
    With my best,
    Zike Huang(jim)

    This is a branch of a couple of existing threads:
    http://forum.java.sun.com/thread.jsp?forum=48&thread=447162&tstart=0&trange=15
    MOD

  • [Mysql-Connector] A very strange problem !

    Hi everybody!
    Ready to hear a strange story ?
    I have a weird problem to use the MySQL-connector under Linux (Debian).
    I have no problem in windows XP, all is working fine !
    But under Linux when I try to connect to mysql throught mysql-connector wrote in a Servlet I have this message :
    Message: Invalid authorization specification message from server: "Access denied for user 'root'@'monkinetwork' (using password: YES)"
    SQLState: 28000
    ErrorCode: 1045 Here the software I'm using :
    Tomcat 5.0.28
    MySQL-Connector version is : mysql-connector-java-3.0.15-ga-bin.jar
    JDK Version : 1_5_0_01. Servlet-Examples and JSP works fine! So I don't think the problem come from JDK.
    MySQL version : MySQL-SERVER-4.1.9-2 : All is working under console mode !
    Here's My Servlet TESt1.java:
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.sql.*;
    import java.sql.DriverManager;
    public class TEST1 extends HttpServlet {
    public void doGet(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException  {
        response.setContentType("text/html");
        PrintWriter out = response.getWriter();
       String url = "jdbc:mysql://localhost:3306/HeroDB";
       String user = "root";
       String password = "password";
    try{
        Class.forName("com.mysql.jdbc.Driver");
        out.println("<br> DRIVERS JDBC : OK!");
        Connection connection = DriverManager.getConnection(url,user,password);
        out.println("<br> Database connection : OK!");
    catch (ClassNotFoundException e)
             out.println("Error with JDBC Drivers !");
    catch(SQLException ex) {
            out.println("<br> ERROR MESSAGE <br>");
       while (ex != null) {
                    out.println("<br>Message: " + ex.getMessage ());
                    out.println("<br>SQLState: "  + ex.getSQLState ());
                    out.println("<br>ErrorCode: "  + ex.getErrorCode ());
                    ex = ex.getNextException();
          out.println("");
    AND THE HTML PAGE in order to access to the Servlet :
    <HTML>
    <HEAD>
    <TITLE>DataBase Test</TITLE>
    </HEAD>
    <BODY BGCOLOR="#FDF5E6">
    <H2 ALIGN="CENTER">DataBase TEST</H2>
    <FORM ACTION="http://localhost:8080/TEST1">
    <CENTER>
    <INPUT TYPE="SUBMIT" VALUE = "CONNEXION TEST">
    </CENTER>
    </FORM>
    </BODY>
    </HTML>
    Theses codes works very well under windows, but under linux system here what I've got :
    DRIVERS JDBC : OK!
    ERROR MESSAGE
    Message: Invalid authorization specification message from server: "Access denied for user 'root'@'monkinetwork' (using password: YES)"
    SQLState: 28000
    ErrorCode: 1045 Well, the web.xml file is well configured.
    Anyway : I already tried with class: org.gjt.mm.mysql.driver, but I have the same message error !
    By the way, it's very strange that I can play with MySQL under the terminal but not throught tomcat.
    Any suggestions please , because it's giving me a very hard time ! ?
    Thank you !
    ++
    maki

    MySQL does authentication based on usernames and hosts. See http://dev.mysql.com/doc/mysql/en/connection-access.html

  • Very strange problem. Missing characters in QT applications

    Hello all.
    I'm trying to deal with a very strange issue since some time, that is driving me crazy, because I have no clue where the problem may lay:
    In my Archlinux system, some, and only some QT applications (for example Skype, or Qtconfig) don't display properly certain characters in the unicode set (for example "ń" or "ł") when I use certain fonts (for example Terminus, Clean or Verdana), and those applications substitute those characters with the corresponding ones from the Bitstream Vera Sans font type.
    So, when I write, say, the Polish word "Toruń", the four first letters (T, o, r and u) are rendereed in the desired font type (let's say Terminus). However, the last letter (ń) is rendered in Bitstream Vera Sans, thus making the writing appear really ugly and uneven.
    However, this doesn't happen in Opera (the browser), which is a QT application, but where I get the whole unicode character set displayed properly in the desired font type (Terminus in this example).
    Also, this doesn't happen in the rest of non-QT applications I have in my system: all of them render perfectly the whole unicode set of characters in the desired font type, no matter which.
    But! it's not a problem of those QT applications, because I have another partition with Ubuntu installed, and when I boot that partition I don't have this problem: all applications, including Skype and Qtconfig, display correctly all characters in the whole unicode set, no matter which font type I'm using.
    This is totally bewildering me.
    Any clue?
    Thank you.

    The problem is not only in qt applications. I run openbox and this is the output I get when using the command-line script pdfmerge to merge pdf files:
    GPL Ghostscript 8.71: Missing glyph CID=48, glyph=0030 in the font VerdanaBold . The output PDF may fail with some viewers.
    GPL Ghostscript 8.71: Missing glyph CID=49, glyph=0031 in the font VerdanaBold . The output PDF may fail with some viewers.
    GPL Ghostscript 8.71: Missing glyph CID=31, glyph=001f in the font VerdanaItalic . The output PDF may fail with some viewers.
    GPL Ghostscript 8.71: Missing glyph CID=38, glyph=0026 in the font VerdanaItalic . The output PDF may fail with some viewers.
    GPL Ghostscript 8.71: Missing glyph CID=37, glyph=0025 in the font VerdanaItalic . The output PDF may fail with some viewers.
    GPL Ghostscript 8.71: Missing glyph CID=34, glyph=0022 in the font VerdanaItalic . The output PDF may fail with some viewers.
    GPL Ghostscript 8.71: Missing glyph CID=54, glyph=0036 in the font VerdanaBold . The output PDF may fail with some viewers.
    GPL Ghostscript 8.71: Missing glyph CID=44, glyph=002c in the font VerdanaBold . The output PDF may fail with some viewers.
    GPL Ghostscript 8.71: Missing glyph CID=50, glyph=0032 in the font VerdanaBold . The output PDF may fail with some viewers.
    GPL Ghostscript 8.71: Missing glyph CID=77, glyph=004d in the font Verdana . The output PDF may fail with some viewers.
    There are visible errors in the pdf output. For example, bold "C" is replaced by a square box, bold "b" is replaced by a space.
    It looks like there's bug in the Verdana font or perhaps in Ghostscript 8.71

  • Problems controlling Microsoft Access with ActiveX

    I have done quite a bit of searching on this topic, and have found several answers that are close, but do not address my actual problem.
    I would like to use ActiveX to control Microsoft Access, specifically to create new database files without having to copy a blank file I have stored somewhere. I also can't stand it when I can't get something to work, so this is now a personal thing too.
    Anyway, when I run a simple VI to open the creatable reference Access._Application, I get the error: "Error 3005 occurred at Automation Open: Object specified is not creatable in Access.vi". I have tried a lot of the common answers to this problem, like browsing for the library in the ActiveX window, and trying to register it with regsvr32, but the file is msacc.olb, which cannot be registered with regsvr32.exe. I have attached the original VI and I have tried this on 3 different PCs, all with slightly different installs of Office, but all with Access 2007. If anyone can help me figure this out, I would greatly appreciate it.
    Thanks 
    Eric
    "When I see an adult on a bicycle, I do not despair for the future of the human race."
    -H.G. Wells
    Solved!
    Go to Solution.
    Attachments:
    Access.vi ‏6 KB

    Your vi gave the same error on my machine.  Then I deleted the Access._Application reference, right-clicked on the reference input and selected Create Control.  Then I changed the Active-X Class by browsing to my computers version of the reference ("Access._Application.12").  The same vi ran without error.
    The class still shows as Access._Application, which indicates that there may be an incompatibility which is not visible.  
    When and activeX node fails to run when copied from any other machine, it is recommended to Replace each node that generates the error and reselect the properties and methods.
    Michael Munroe, ABCDEF
    Certified LabVIEW Developer, MCP
    Find and fix bad VI Properties with Property Inspector

  • Oracle Forms 6i - very strange problem.

    Dear, good afternoon!
    First, excuse me for bad English writing. I'm still learning, I'm Brazilian ...
    This is my first post, I started working with Oracle Forms and I recently came across a very strange issue, Forms do not know if it works differently than other technologies, but this error left me somewhat surprised.
    Well, see the following situation:
    System / BD Production (Access through VPN)
    System / BD Test (access through VPN)
    System Development (Location) / Test Bank (VPN).
    Access to the environment TEST = OK. As
    - I put the shortcut Oracle 6i forms to the address of *. FMX server through VPN.
    Access to the Production environment = NOT OK. As
    - I put the shortcut Oracle 6i forms to the address of *. FMX server through VPN.
    Note: The application opens, all right. But when choosing a menu form, this form is not loaded on the screen. As the link it was disabled.
    It can be kind of access? NO. For tested with the login of a user that is in place (no access through vpn) and the failure persists. I went to this user my login, and can access it normally.
    Can be connected through VPN? I think NOT, because if the TEST environment would not work.
    In short: When you access the TEST environment, everything works. I can open any form of the system through the menus, but in production, the forms do not open, as if he had called the forms.
    Recalling that the people who are local access normally. As with my login on with it.
    Would anyone answer me what might be happening?
    Thank you in advance!
    Regards,
    Bruno Ambrozio
    Skype: b.ambrozio
    MSN: [email protected]
    GTalk/Mailto: [email protected]

    It can be kind of access? NO. For tested with the login of a user that is in place (no access through vpn) and the failure persists. I went to this user my login, and can access it normally.
    Can be connected through VPN? I think NOT, because if the TEST environment would not work.Test your network with tnsping80 and/or sqlplus first.

Maybe you are looking for

  • Using iPod as encrypted disk for G4 Backup

    i have created an encrypted disk image on my iPod for backing up my G4 desktop folder. works like a charm. however, OSX limits the size of this disk image to 500MB when it is created using Disk Utility. that is unfortunate since my desktop folder is

  • How to umount a busy NFS mount in solaris 2.6?

    How can I umount a busy NFS mount in solaris 2.6 without rebooting the machine? I've tried to check what processes that might hold the mount with the command 'fuser -c /home/user' but it reports nothing. I wish I had solaris 8 so I could use 'umount

  • Best Way to Handle Buttons

    I have a complex button graphic that I use for all the buttons in my Flash project. Currently, for every different button function I need, I've duplicated the button and linked it to a separate class. So if I need buttons that link to rules, credits,

  • Dump when displaying target group

    Hi, When I try to display a target group I get this error: Line types of an internal table and a work area not compatible The problem is that in method SELECT_BP_ENHANCEMENTS from class CL_DEF_IM_CRM_MKTTG_SEG_MEM_EX, the method tries to insert a lin

  • Purchased Mountain Lion but can't access.

    I purchased Mountain Lion, received two emails, copied the password into the space provided in one of the emails but when I went to access the PDF I was taken back to my original email. Never received a disc as I did with Snow  Leopard so don't know