Crystal parameters - defaulting

 4 Replies
 0 Subscribed to this topic
 23 Subscribed to this forum
Sort:
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
Posts: 3364
New Poster
New Poster
Congrats on posting!
Engaged Reader
Engaged Reader
You are an engaged reader!
Avid Reader
Avid Reader
Avid Reader art thou!
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?
Phil Simon http://philsimonsystems.com/ phil@philsimonsystems.com
John Henley
Posts: 3364
New Poster
New Poster
Congrats on posting!
Engaged Reader
Engaged Reader
You are an engaged reader!
Avid Reader
Avid Reader
Avid Reader art thou!
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