Well Borislav, the problem continue, I added the browse command and get data in the IDE but not in the EXE. I changed the variable to Mdate21 and Mdate22 to avoid mixup of variables and still got the same result.
Gregorio J. Placeres IT Analyst Uniform Accounting Network Auditor of State of Ohio 88 East Broad Street P.O. Box 1140 Columbus, Ohio 43216-1140