Hello,
I am using Crystal 10 with an informix database.
I am trying to determine how to make a field an integer field in Crystal. Here is what I am coming up against.
I am trying to create a formula that evaluates prior retail weeks. In the time2 table we have a weekcode field that is set as a number. I have successfully written a formula that will return the appropriate weekcode in the report.
As an example, the current weekcode in the table is 401. I have written a formula that says if the last purchase
date = business date from time2 table, then return the weekcode.
Then another formula that says take the returned weekcode and subtract 1, to give me the prior weekcode.
Then another formula that says if the returned weekcode from the above formula
is = time2.weekcode then show me the on hand values for that week.
Here is where I am running into a problem. The current weekcode is 401. When I run the formula to subtract 1 from that value, I get a returned value of 400.00.
When I use the formula to compare the returned value to the weekcode field I don't get any results since 400.00 does not match 400.
Sorry about rambling here, hope this makes sense.
Any ideas on how to get around this?
Thanks,
I am using Crystal 10 with an informix database.
I am trying to determine how to make a field an integer field in Crystal. Here is what I am coming up against.
I am trying to create a formula that evaluates prior retail weeks. In the time2 table we have a weekcode field that is set as a number. I have successfully written a formula that will return the appropriate weekcode in the report.
As an example, the current weekcode in the table is 401. I have written a formula that says if the last purchase
date = business date from time2 table, then return the weekcode.
Then another formula that says take the returned weekcode and subtract 1, to give me the prior weekcode.
Then another formula that says if the returned weekcode from the above formula
is = time2.weekcode then show me the on hand values for that week.
Here is where I am running into a problem. The current weekcode is 401. When I run the formula to subtract 1 from that value, I get a returned value of 400.00.
When I use the formula to compare the returned value to the weekcode field I don't get any results since 400.00 does not match 400.
Sorry about rambling here, hope this makes sense.
Any ideas on how to get around this?
Thanks,