I need to creat a report where only the records of the day going to be printed, but when I put the function, the program take the hour of system insted of date.
I need some help and Excuses because my english. I'm brazilian.
That means that your field isn't a date field. Right click on the field in your report and select "Browse field data" to confirm the data type of this field as reaad by CR.
Also post a sample value as it prints on the report in it's exact format.
Last, give us the version of CR you are using. Ken Hamady
You gave me the format and CR Version, but you didn't tell me the data type of the field. See the first line of my last post and tell me what data type CR is seeing. Ken Hamady
The problem is that CurrentDate is a date value and you are comparing it to a string field. To make it work you have to convert one to the other, and the easiest is to convert today's date to a string.
Try the following formula for your record selection formula:
Totext(CurrentDate,'dd/MM/yy') = {Cadastro.Data}
You specified a 2 digit year in your sample, so that is what I am using (let me know if you really meant a 4 digit year). The format string in quotes IS case sensitive, so keep it just like I have shown it. Let me know how it works. Ken Hamady
You only need one formula. It is the last one that I gave you.
THis is not a formula field, but the "record selection formula". It does the conversion to a string for you while it is selecting. Ken Hamady
The formula I gave you wasn't supposed to go into a field. However, if it is working I would just delete that field from the canvas leaving it in the formula list. Ken Hamady
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.