Crystal parameters - defaulting

Sort:
You are not authorized to post a reply.
Author
Messages
Phil Simon
Veteran Member
Posts: 135
Veteran Member
    Hello

    I was wondering if anyone figured out how to do this.

    I have a parameter at the command level for PRTIME that will limit the records pulled, since that table gets to be big.

    TR-DATE =?

    To compare paychecks, I have another command set to PRTIME with the same parameters:

    TR-DATE =?

    Ideally, someone can put in parameter 1 = 7/1/07 and parameter s 7/15/07 so you can compare both paychecks.

    However, OLEDB's command builder isn't liking adding the same parameter twice. The second one never appears in Crystal. I would think that you could do this.

    Thank you,

    ps

    Phil Simon http://philsimonsystems.com/ phil@philsimonsystems.com
    John Henley
    Senior Member
    Posts: 3348
    Senior Member
      Phil, are you using two different OLEDB/ADO commands in the report?
      Thanks for using the LawsonGuru.com forums!
      John
      Phil Simon
      Veteran Member
      Posts: 135
      Veteran Member
        Yes, I am using separate commands.

        "Undocumented" feature? <img src='desktopmodules/ntforums/images/emoticons/smile.gif' height='20' width='20' border='0' title='Smile' align='absmiddle'>
        Phil Simon http://philsimonsystems.com/ phil@philsimonsystems.com
        John Henley
        Senior Member
        Posts: 3348
        Senior Member
          Not undocumented, just not well-understood.
          I demonstrated it back in 2005 as a way to "JOIN" when Lawson doesn't support the join:
          https://www.danalytics.co.../archive/2005-03.htm
          Thanks for using the LawsonGuru.com forums!
          John
          Phil Simon
          Veteran Member
          Posts: 135
          Veteran Member
            Thanks, John.

            I was away from this one for a bit, focusing on little victories.

            You're right; the order of the joins matters. Adding the table with the prompted date fields first, then doing a left OJ on the 2nd table, resulted in success!

            You the man!
            Phil Simon http://philsimonsystems.com/ phil@philsimonsystems.com
            You are not authorized to post a reply.