I have a problem in the sequence of records in the Dataset
Hi
I have a table with autonumber and when I add records it added in the database correctly but when I view the records in my program change order of records
The program works correctly for a period
Example
In the table
1
2
3
4
In the program
1
4
3
2
My database is access
and I use vb.net
3 Replies - 2135 Views - Last Post: 22 March 2012 - 01:34 PM
#1
Difference between sequence of records in the database and DataSet
Posted 21 March 2012 - 11:44 AM
Replies To: Difference between sequence of records in the database and DataSet
#2
Re: Difference between sequence of records in the database and DataSet
Posted 21 March 2012 - 12:26 PM
Can you show us the code you use to fetch those records?
Generally speaking, for SQL databases, you use an ORDER BY clause to tell your database in which order you want the records to be returned.
Generally speaking, for SQL databases, you use an ORDER BY clause to tell your database in which order you want the records to be returned.
#3
Re: Difference between sequence of records in the database and DataSet
Posted 21 March 2012 - 05:52 PM
Thank You
Its done when I use ORDER BY
Its done when I use ORDER BY
#4
Re: Difference between sequence of records in the database and DataSet
Posted 22 March 2012 - 01:34 PM
Show the code procedure.
Page 1 of 1
|
|

New Topic/Question
Reply


MultiQuote





|