Mcblake
asked on
Problem with Date format in crystal report
Dear sir,
Now, I use Microsoft Access 95 as my database and Visual Basic 4.0. After I finished my crystal report. I try to select group of record with SelectionFormula . But I can't get any report after I try to send in a date format. How can I solve this problem? I have tried for several ways which I know but it's not work..
Such as;
crystalreport1.selectionfo rmula = "{tblrpt.somedate} = #" & format(maskedbox1.text, "mm/dd/yy") & "#"
or
crystalreport1.selectionfo rmula = "{tblrpt.somedate} = #" & cvdate(maskedbox1.text) & "#"
or
crystalreport1.selectionfo rmula = "{tblrpt.somedate} = " & cvdate(maskedbox1.text)
PS. I format my date as short date format.
Now, I use Microsoft Access 95 as my database and Visual Basic 4.0. After I finished my crystal report. I try to select group of record with SelectionFormula . But I can't get any report after I try to send in a date format. How can I solve this problem? I have tried for several ways which I know but it's not work..
Such as;
crystalreport1.selectionfo
or
crystalreport1.selectionfo
or
crystalreport1.selectionfo
PS. I format my date as short date format.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
biko,
I have tried your code
crystalreport1.selectionfo rmula = "{tblrpt.somedate} = date(1998,05,02)"
& it doesn't work for me!
I have tried your code
crystalreport1.selectionfo
& it doesn't work for me!
I have tried your code
RUNSHEET_HISTORY.RUN_DATE
& it doesn't work for me!