|
-
Jun 28th, 2004, 04:16 AM
#1
Thread Starter
Addicted Member
SQL Statement Sorting LastName by A, B, C ...
Hi there,
How would I be able to set the SQL Statements so that I have the LastName by A, B, C ... SORTED and NOT by the ID as it is now ???.
VB Code:
Public Function FillList()
'---
str_SQL = "SELECT ID, LastName+', '+FirstName FROM tblAddr"
End Function
VB Code:
Public Function GetAddressDetails()
str_SQL = "SELECT * FROM tblAddr Where ID =" & lngAddrID
End Function
Thanks aktell GER/NZ
-
Jun 28th, 2004, 04:27 AM
#2
-
Jun 28th, 2004, 04:27 AM
#3
Re: SQL Statement Sorting LastName by A, B, C ...
This will order by LastName, then Firstname when the LastNames match
VB Code:
str_SQL = "SELECT ID, LastName+', '+FirstName FROM tblAddr ORDER BY LastName, FirstName"
VB Code:
str_SQL = "SELECT * FROM tblAddr Where ID =" & lngAddrID + " ORDER BY LastName, FirstName"
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
|