Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Using Java CheckBox to insert data to MSAccess Database

  1. #1
    Junior Member
    Join Date
    May 2011
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Using Java CheckBox to insert data to MSAccess Database

    Hello!

    I'm using Netbeans 7.0 to develop a programme to Insert data into a MS Access database.

    It has 2 tables Main and Col

    Main table have 2 fields (VID and Name) - VID is the primary key
    Col table have 2 fields (VID and Color) - Have composite key(Both VID and Color)

    My program is now able to add all 3 fileds via it's UI.
    I have 3 colors in 3 checkboxes, now it is only capable of
    adding only 1 color at a time. When I select more than 1 color (2 or3)
    it's not working.

    ex: when I select 2 colors form my interface and Insert it,
    I need to appear it like this in my Col table

    VID Col
    37 Red
    37 Orange

    Note : both VID and Col are composite keys


    need yo kind help!
    Thanx 4 reading
    Last edited by sandlucky; May 16th, 2011 at 12:41 AM. Reason: code error


  2. #2
    Junior Member
    Join Date
    May 2011
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Using Java CheckBox to insert data to MSAccess Database

    I solved it on my own, Thanx 4 reading. I need to delete this post. Mr. Admin pls delete this post.

Similar Threads

  1. Insert into database from flat file
    By HelloAll in forum JDBC & Databases
    Replies: 2
    Last Post: March 10th, 2011, 11:05 PM
  2. [SOLVED] Passing data to a MySQL database
    By JDyson in forum JDBC & Databases
    Replies: 1
    Last Post: December 1st, 2010, 01:31 PM
  3. [SOLVED] Get Data From Database MySQL using ComboBox
    By Simple in forum Java Theory & Questions
    Replies: 2
    Last Post: June 4th, 2010, 03:45 AM
  4. Replies: 1
    Last Post: January 15th, 2010, 01:32 AM
  5. how to delete record based on checkbox selected checkbox
    By -_- in forum JavaServer Pages: JSP & JSTL
    Replies: 0
    Last Post: December 15th, 2009, 09:26 PM

Tags for this Thread