Results 1 to 2 of 2

Thread: Crystal Reports in VB problem ! Help

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Aug 1999
    Location
    Fort Atkinson, WI , USA
    Posts
    17

    Post

    Hi Folks.
    I have a problem.
    I don't know how to sort my Database before I print it in the Crystal Reports.

    This is a part of it.

    cr.DataFiles(0) = workdir
    cr.SortFields(0) = "+djmm.Artist"
    cr.ReportFileName = "printdoc1.rpt"

    The MDB struct is

    djmm.Artist
    djmm.Title
    djmm.BPM
    Found in the help file how to do the SortFields, but for some reason it's not working.
    Who knows what I'm doing wrong ?
    Many Thanks.... Perry

  2. #2
    New Member
    Join Date
    Aug 1999
    Location
    Montemarenzo, Lecco, Italy
    Posts
    1

    Post

    Hi!!! Try with
    Crystalreport1.sortfields(0)="+{tablename.fieldname}"
    Crystalreport1.sortfields(1)="+{tablename.anotherfieldname}"
    To deactivate sort with a fields do:
    Crystalreport1.sortfields(0)="- {tablename.fieldname}"

    See Ya!!

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