| | |
about data report
![]() |
hello to every one! have a nice day! pls help me how to arrange data alphabetically in the data report which came from the data environment designer.. i want to keep records in ascending form such as last name. i am creating a students record and i want that their names be arranged in alphabetical order. is there way to do that! thanks all for you response!
•
•
Join Date: Sep 2006
Posts: 54
Reputation:
Solved Threads: 1
•
•
•
•
hello to every one! have a nice day! pls help me how to arrange data alphabetically in the data report which came from the data environment designer.. i want to keep records in ascending form such as last name. i am creating a students record and i want that their names be arranged in alphabetical order. is there way to do that! thanks all for you response!
Dim conn As ADODB.Connection
Dim rptCn As Connection
Dim rptRs As Recordset
Public Sub RptConnect()
Set rptCn = New Connection
rptCn.CursorLocation = adUseClient
rptCn.Open conn
End Sub
Private Sub cmdPrint_Click()
Call RptConnect
Set rptRs = New Recordset
rptRs.Open ("Select * From tbluserlog Oder By LastName"), conn
Set rptUserlogAll.DataSource = rptRs
rptUserlogAll.Show 1
End sub
if there anything wrong just tell me..
thanks for the response. but it did not work, or i think i have done incorrect process.. the idea is this, i have added data environment and data report, then i drag the fields from data environment to the data report named PRINTGS. what should i do to make fields in data report be ascended? after pressing the command button named PRINT, data report togther with the fields should be in alphabetical form which came from the data environemnt. the database name is RECORDS.MDB and table name is GRADINGSHEET, while the data report is PRINTGS. what should be the right process.
•
•
Join Date: Aug 2007
Posts: 10
Reputation:
Solved Threads: 0
•
•
•
•
hello to every one! have a nice day! pls help me how to arrange data alphabetically in the data report which came from the data environment designer.. i want to keep records in ascending form such as last name. i am creating a students record and i want that their names be arranged in alphabetical order. is there way to do that! thanks all for you response!
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
SELECT * FROM Publishers ORDER BY State, City DESC SELECT * FROM Publishers ORDER BY State, City ASC
try using that code publisher is the table name and state is the field
![]() |
Similar Threads
- Data Report in vb 6.0 (Visual Basic 4 / 5 / 6)
- help me pls~~ data report data section does not match data source (Visual Basic 4 / 5 / 6)
- Printing Data Report Directly in vb.net (VB.NET)
- Data report... (Visual Basic 4 / 5 / 6)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: MSHFlex Grid Control
- Next Thread: recordset::sort property
| Thread Tools | Search this Thread |
* 6 2007 access activex add age basic beginner birth bmp calculator cd cells.find click client code college connection connectionproblemusingvb6usingoledb creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit excel excelmacro file filename form header iamthwee image inboxinvb internetfiledownload listbox listview liveperson login looping microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading remotesqlserverdatabase report save search sendbyte sites sql sql2008 sqlserver subroutine tags time urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web windows





