How can i select the bottom 10 records in my table. Does the BOTTOM keyword work in VB.NET?
If you're using .NET 3.5 then you can use LINQ to DataSet: vb.net Code: Dim last10Rows = myDataTable.AsEnumerable().Skip(myDataTable.Rows.Count - 10) The converse of Skip is Take, so to get the first 10 rows would be .Take(10).
Dim last10Rows = myDataTable.AsEnumerable().Skip(myDataTable.Rows.Count - 10)
Why is my data not saved to my database? | MSDN Data Walkthroughs VBForums Database Development FAQ My CodeBank Submissions: VB | C# My Blog: Data Among Multiple Forms (3 parts) Beginner Tutorials: VB | C# | SQL
Forum Rules