Results 1 to 4 of 4

Thread: Crystal report selection and viewing

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Sep 2002
    Posts
    26

    Crystal report selection and viewing

    Now I have code like this:

    Dim sSelection As String
    sSelection = " {Planning.Week} = 44"
    WeekReport1.SelectionFormula = sSelection
    WeekReport1.PrintReport

    I'm new to Crystal reports, so I've got 4 (i hope simple) questions:

    1. How can I make a selection like Planning.Week between 44 AND 48 or something like that? Can I use SQL for this?
    2. How can I maximize the report that is being showed by PrintReport?
    3. How can I show a selected report in the crystal report viewer?
    4. How can I use a query as a source for a crystal report, and then use parameters passed from VB to this report?

  2. #2
    Frenzied Member oh1mie's Avatar
    Join Date
    Sep 2001
    Location
    Finland
    Posts
    1,043
    To the first question try this:

    sSelection = "{Planning.Week}>43 AND {Planning.Week}<49"
    oh1mie/Vic


  3. #3

    Thread Starter
    Junior Member
    Join Date
    Sep 2002
    Posts
    26
    Thnx, that works oke indeed . Thnx 4 your reaction. Also someone 4 the other questions?

  4. #4
    Frenzied Member pnish's Avatar
    Join Date
    Aug 2002
    Location
    Tassie, Oz
    Posts
    1,918
    Assuming you're using the Crystal ocx:

    2. WeekReport1.WindowState = crptMaximized

    3. I'm not sure what you mean??
    4. I think you have to use ODBC to be able to use Access parameter queries in a report. I've never done it so I'm not sure.

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