Crystal Reports How you Map old to new command

In crystal report 2008 how you map old command to new  command they have the same filed but some selection criteria are different. What are the steps. Do I need to have old command in report then add new command or I remove old then add new?? Both of them working on same tables from the same database.
TarasAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Mike McCrackenSenior ConsultantCommented:
Why don't you just edit the command if they are working on the same tables?

mlmcc
Raghavendra HullurSoftware DeveloperCommented:
Hi,

Retain the existing command and add new command with required fields.
Go to set datasource location under database tab and map the fields one by one from the existing commands you can see there.
Click ok and replace any other references of old command fields with new command fields manually.
Check under fields explorer whether any fields are still with a tick mark from old command object and replace them with new command object.

Hope that helps.
TarasAuthor Commented:
mlmcc.
 I described in my another question exactly what you are suggesting that is not working, but I forgot that it was another question you responded to,  I apologize not mentioning that here again.

That is really strange you have edit command, you click it open Modified Code window, you change code (I just need to changed date criteria for selection record nothing else everything is staying the same.
But when I close window all those changes disappeared.

Raghavendra. I used the same connection and I added new command it is the same as old just one criteria is changed for date selection is changed. Now I have command and command1 in one report, in link tab I can see command1 empty  no fields in in command I can see all fields. I can not come to Map window. Both old  command and new command1 are in Current data source. I can not get Map windows.
I assume that in mapping it will be problem as one name is command and another is Command1 all fields and formulas in report are connected to command not command1.
Mike McCrackenSenior ConsultantCommented:
DId you do the remap?

To remap you don't really add the new Command to the report.

Click DATABASE - SET DATA SOURCE LOCATION
Create the NEW command
After creating the Command
Click the Connection Name in the top and bottom window
CLick UPDATE

mlmcc

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
TarasAuthor Commented:
Thank you a lot.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Crystal Reports

From novice to tech pro — start learning today.