|
-
May 18th, 2005, 05:42 AM
#1
Thread Starter
Fanatic Member
[RESOLVED] Applying Sort to a Form
I have a form that is based on a database table.
when i opened the form i would like it to sort the data according to the data, without having to use the Apply Filter/Sort on the Form.
i also have a filter on the form but i do not want the to be applied with the sort/
how can this be done
Barry
Visual Studio .NET 2008/Visual Studio .NET 2005/Visual Studio .NET 2003
.NET Framework 3.0 2.0 1.1/ASP.Net 3.0 2.0 1.1/Compact Framework 1.0
SQL Server 2005/2000/SQL Server CE 2.0
If you like, rate this post
Compact Framework for Beginners
-
May 18th, 2005, 06:10 AM
#2
Re: Applying Sort to a Form
You could sort the database when you first retrieve the data, by using a SELECT SQL statement with a ORDER BY clause added to the end.
-
May 18th, 2005, 06:23 AM
#3
Thread Starter
Fanatic Member
Re: Applying Sort to a Form
this done by attaching the record source of the form to a query
Barry
Visual Studio .NET 2008/Visual Studio .NET 2005/Visual Studio .NET 2003
.NET Framework 3.0 2.0 1.1/ASP.Net 3.0 2.0 1.1/Compact Framework 1.0
SQL Server 2005/2000/SQL Server CE 2.0
If you like, rate this post
Compact Framework for Beginners
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|