Dear Hans,
Thank you very much for your kind response. I tried your code but did not work. I got a runtime error 3075.
I am attaching some pictures for you to see how I created my table, form and report, so you can see what can be the problem.
My textfields where I type the dates are formated as shortdate with dd/mm/yyyy mask.
In my Report the field that I want to filter was named dia , which I changed to DateField, assuming that is the one that you put in your code.
After I got the error, I also changed your code to see if that was the problem, but did not work either, and gave me the same 3075 runtime error
DoCmd.OpenReport ReportName:="RepSur", View:=acViewReport, _
WhereCondition:="[DateField] Between #" & Format(Me.DateFrom, "dd/mm/yyyy") & _
"# And #" & Format(Me.DateTo, "dd/mm/yyyy") &"#"
Please tell what is what I am doing wrong.



