Results 1 to 2 of 2
  1. #1
    drimades is offline Member
    Join Date
    Mar 2012
    Rep Power

    Default Checking duplicates values in key field

    I have a form in my netbeans javadb app to insert values into a table. I want to warn the user if he inserts a duplicated value in form.
    How can I do it from code?

    I use an "insert into" statement to put data in db.

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Rep Power

    Default Re: Checking duplicates values in key field

    If the user is not supposed to enter duplicate values then make that column UNIQUE.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

Similar Threads

  1. Enable/Disable Text Field upon checking check box
    By DGates in forum New To Java
    Replies: 2
    Last Post: 01-26-2012, 02:07 AM
  2. Checking if enter has been pressed on a text field
    By BoomPony in forum New To Java
    Replies: 1
    Last Post: 01-28-2011, 04:18 PM
  3. Checking for XML Attribute Values
    By garbar in forum XML
    Replies: 3
    Last Post: 07-23-2010, 06:52 PM
  4. Replies: 1
    Last Post: 03-08-2010, 02:34 PM
  5. Replies: 0
    Last Post: 01-28-2008, 10:00 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts