i am writing a report using crystal reports7 in vis basic6 and i keep getting a runtime error 20515
here is the code
Iridium_report.DataFiles(0) = dir_path & "\Iridium.mdb"
Iridium_report.ReportFileName = App.Path & "\Iridium_invoice.rpt"
Iridium_report.WindowTitle = "Tap Files Report"
Iridium_report.SelectionFormula = "{TapFiletable.RECIEVER_PLNM}= '" & txtclientplnm.Text & "'" & " And " & "{TapFileTable.START_DATE} < '" & Format(DTPicker1, "(yyyy, mm, dd)" & "'"
Iridium_report.SortFields(0) = "+{TapFiletable.EFFECTIVE_DATE}"
Iridium_report.Action = 1
Iridium_report.PageZoom (100)
All the lines of code have been split cos the window is not wide enough but the problem is, I have a field in a table called START_DATE and using a selection formula i am trying to get all data from before the date specified by the datepicker. the error keeps saying that a time-date is expected and i know its because the format of dates in cr7 is different to vb
please help as my boss is kicking my arse about it
here is the code
Iridium_report.DataFiles(0) = dir_path & "\Iridium.mdb"
Iridium_report.ReportFileName = App.Path & "\Iridium_invoice.rpt"
Iridium_report.WindowTitle = "Tap Files Report"
Iridium_report.SelectionFormula = "{TapFiletable.RECIEVER_PLNM}= '" & txtclientplnm.Text & "'" & " And " & "{TapFileTable.START_DATE} < '" & Format(DTPicker1, "(yyyy, mm, dd)" & "'"
Iridium_report.SortFields(0) = "+{TapFiletable.EFFECTIVE_DATE}"
Iridium_report.Action = 1
Iridium_report.PageZoom (100)
All the lines of code have been split cos the window is not wide enough but the problem is, I have a field in a table called START_DATE and using a selection formula i am trying to get all data from before the date specified by the datepicker. the error keeps saying that a time-date is expected and i know its because the format of dates in cr7 is different to vb
please help as my boss is kicking my arse about it