Results 1 to 6 of 6
  1. #1
    abhi7080 is offline Member
    Join Date
    Dec 2011
    Location
    india
    Posts
    16
    Rep Power
    0

    Default Not getting 1st record from table.

    I have created a form. From which i can get the records of the users(table name) by using query -" select * from users where acno(account number)=?".
    But the problem is that if a table having 5 records about particular account , it displays only 4 record and not displaying the first record.
    How to solve this?

  2. #2
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,005
    Blog Entries
    7
    Rep Power
    20

    Default Re: Not getting 1st record from table.

    Quote Originally Posted by abhi7080 View Post
    How to solve this?
    We don't know without seeing any relevant code. Probably you're calling the ResultSet.next() method one times too many.

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  3. #3
    abhi7080 is offline Member
    Join Date
    Dec 2011
    Location
    india
    Posts
    16
    Rep Power
    0

    Default Re: Not getting 1st record from table.

    Yes! i am using resultset.next() method two timesin a same form to get all the recoreds from table,
    is it wrong?

  4. #4
    abhi7080 is offline Member
    Join Date
    Dec 2011
    Location
    india
    Posts
    16
    Rep Power
    0

    Default Re: Not getting 1st record from table.

    I am now using simpledateformate as (dd/MM/yy ) but i want out put as dd-month-yy eg.(1-jan-2012).what would i do to get it?

  5. #5
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,450
    Rep Power
    19

    Default Re: Not getting 1st record from table.

    Look up the API for SimpleDateFormat and read up on the syntax?
    It's all there...

  6. #6
    abhi7080 is offline Member
    Join Date
    Dec 2011
    Location
    india
    Posts
    16
    Rep Power
    0

Similar Threads

  1. Replies: 9
    Last Post: 07-09-2011, 07:15 PM
  2. Replies: 2
    Last Post: 08-10-2010, 08:03 AM
  3. Replies: 3
    Last Post: 03-26-2009, 07:35 AM
  4. Replies: 0
    Last Post: 04-01-2008, 10:43 AM
  5. Replies: 0
    Last Post: 09-28-2007, 01:01 PM

Posting Permissions

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