Results 1 to 2 of 2

Thread: Sorting a report

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jul 2003
    Location
    Lewiston, Maine
    Posts
    128

    Smile Sorting a report

    Good Day,

    I've created a report and now I need to sort the datasource (an access database) so that the report only shows data for a certain month and year. here is my code.

    VB Code:
    1. Private Sub DataReport_Initialize()
    2. Dim rmonth As String
    3. Dim ryear As String
    4.  
    5. rmonth = RptStart.List1.Index = "0"
    6. rmonth = RptStart.List1.Index = "0"
    7.  
    8. DataEnvironment1.Recordsets = "select * from giveway where month = rmonth and year = ryear order by name"
    9.  
    10. End Sub

    I get an error that says invalid use of property. Can anyone help?

    Thank you

  2. #2

    Thread Starter
    Addicted Member
    Join Date
    Jul 2003
    Location
    Lewiston, Maine
    Posts
    128
    Please Disregard this post

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width