about data report

Reply

Join Date: Sep 2006
Posts: 65
Reputation: arvin2006 is an unknown quantity at this point 
Solved Threads: 4
arvin2006's Avatar
arvin2006 arvin2006 is offline Offline
Junior Poster in Training

about data report

 
0
  #1
Oct 15th, 2006
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!
Reply With Quote Quick reply to this message  
Join Date: Sep 2006
Posts: 54
Reputation: royaloba is an unknown quantity at this point 
Solved Threads: 1
royaloba royaloba is offline Offline
Junior Poster in Training

Re: about data report

 
0
  #2
Oct 16th, 2006
Originally Posted by arvin2006 View Post
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 dbCn As String
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..
Reply With Quote Quick reply to this message  
Join Date: Sep 2006
Posts: 65
Reputation: arvin2006 is an unknown quantity at this point 
Solved Threads: 4
arvin2006's Avatar
arvin2006 arvin2006 is offline Offline
Junior Poster in Training

Re: about data report

 
0
  #3
Oct 16th, 2006
Gud day! thank you v ery much.. i really appreciate your response. God bless!
Last edited by arvin2006; Oct 16th, 2006 at 5:17 am.
Reply With Quote Quick reply to this message  
Join Date: Sep 2006
Posts: 65
Reputation: arvin2006 is an unknown quantity at this point 
Solved Threads: 4
arvin2006's Avatar
arvin2006 arvin2006 is offline Offline
Junior Poster in Training

Re: about data report

 
0
  #4
Oct 16th, 2006
gud day! thank you very much..
Reply With Quote Quick reply to this message  
Join Date: Sep 2006
Posts: 65
Reputation: arvin2006 is an unknown quantity at this point 
Solved Threads: 4
arvin2006's Avatar
arvin2006 arvin2006 is offline Offline
Junior Poster in Training

Re: about data report

 
0
  #5
Oct 17th, 2006
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.
Reply With Quote Quick reply to this message  
Join Date: Sep 2006
Posts: 65
Reputation: arvin2006 is an unknown quantity at this point 
Solved Threads: 4
arvin2006's Avatar
arvin2006 arvin2006 is offline Offline
Junior Poster in Training

Re: about data report

 
0
  #6
Oct 17th, 2006
how could i manipulate the fields in the data report? if i dragged the fields from the data environment, all the contents will be displayed. i want that only the data from the query (SEARCH) will be displayed. how could i do the process. thanks!
Reply With Quote Quick reply to this message  
Join Date: Aug 2007
Posts: 10
Reputation: epok13hart is an unknown quantity at this point 
Solved Threads: 0
epok13hart epok13hart is offline Offline
Newbie Poster

Re: about data report

 
0
  #7
Aug 6th, 2007
Originally Posted by arvin2006 View Post
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)
  1. SELECT * FROM Publishers ORDER BY State, City DESC
  2. SELECT * FROM Publishers ORDER BY State, City ASC

try using that code publisher is the table name and state is the field
Reply With Quote Quick reply to this message  
Join Date: Nov 2006
Posts: 848
Reputation: QVeen72 is on a distinguished road 
Solved Threads: 120
QVeen72's Avatar
QVeen72 QVeen72 is offline Offline
Practically a Posting Shark

Re: about data report

 
0
  #8
Aug 7th, 2007
Hi Arvin,

Whatever CommanD Object u have used to design the Report, Change it to:

"Select * From MyTable Order By FirstName"

ORDER BY WHATEVER FIELD NAME U WANT

Regards
Veena
Last edited by QVeen72; Aug 7th, 2007 at 5:31 am.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Visual Basic 4 / 5 / 6 Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC