Results 1 to 4 of 4

Thread: Crystal Reports & Comboboxes

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Oct 2003
    Posts
    89

    Cool Crystal Reports & Comboboxes

    Hello,

    Let's say I have a form with a combobox full of names like George, Chris, James, etc.

    Could I select from this list and.......

    1) Pass the selection to crystal reports so it only shows the information regarding 'James' in CrystalReportViewer?

    --or--

    2) While CrystalReportViewer is on, put a combobox in another form where CrystalReportViewer is placed choose a name
    from it and then filter according to the name selection?

    I have a long list of names and I don't want to hardcode like:

    VB Code:
    1. If cboName.Text = "James" Then
    2. '
    3. '
    4. '
    5. End if
    6.  
    7. If cboName.Text = "Chris" Then
    8. '
    9. '
    10. '
    11. End If

    ETC.

    Please let me know if you have any solutions?

    Chris

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    I generally pass a dataset to my reports for their data which means I can filter it before sending it if I want.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Oct 2003
    Posts
    89
    Got any code samples for creating a dataset and then passing it to Crystal Reports?

    Thanks

    Chris

  4. #4

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