Results 1 to 3 of 3

Thread: CR9 Date Parameter - Retrive Records from Multiple Fields

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Aug 2006
    Location
    India, Punjab, Bhatinda
    Posts
    1,689

    Exclamation CR9 Date Parameter - Retrive Records from Multiple Fields

    I having a table which has "previousDate", "nextDate" fields in it (Date/Time - Access 2003). In CR9 I created a datetype parameter (SelDt). Now I want to set the parameter to connect to both the above two fields datefields. I opened the select expert and selected the previousDate. Then I opened the formula Editor found in the select expert dialog and added
    or {Table1.nextDate} ={?selDt}
    assuming it would check for both the fileds and populate the records accordingly. The final code/formula looks like this
    {Table1.previousDate} ={?selDt} or {Table1.nextDate} ={?selDt}
    when I ran the report I saw all the records being displayed instead of the ones being selected by the user from the prompt dialog. Individually if only one field is used in the parameter it works fine, but when combined it throws out all data.
    Note: I donot want to use two parameters.
    Any ideas where I am going wrong.

  2. #2
    Just Married shakti5385's Avatar
    Join Date
    Mar 2006
    Location
    Udaipur,Rajasthan(INDIA)
    Posts
    3,747

    Re: CR9 Date Parameter - Retrive Records from Multiple Fields

    No need to use parameter can you simple use the SQL query I show in my crystal report tutorial at my signature.

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Aug 2006
    Location
    India, Punjab, Bhatinda
    Posts
    1,689

    Re: CR9 Date Parameter - Retrive Records from Multiple Fields

    Thanks I did it the same way. But just for knowledge I'd like to know if it is possible by using parameters

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