Hi
I currently have a VB6 program that we use to transfer times and dates of completed helpdesk jobs into a time recording system. We recently had an upgrade to our helpdesk system to Access 2000 and I am having great problems getting the vb6 program to work with it. I have added the MS DAO 3.6 object library and I am still getting errors. It is now complaining of a 'malformed guid in query experession' and I have no idea what this means as the sql statement is identical to the one I used when we had Access 97. This is the current sql statement:
stmt = "select WO_NUM,TYPE,ASSNDATE,COMPLETED,RESPONS,HOURS from TASKS where assndate >= {^" & Format(DTPStartDate, "yyyy-mm-dd") & "} and completed <= {^" & Format(DTPEndDate, "yyyy-mm-dd") & "} and completed > {^1995-01-01} and RESPONS = '" & Responsible & "' order by TYPE"
I have a feeling it is something to do with the dates and have tried taking the date formatting out and I actually get data but I get everything and not between the specified dates.
Any help or advice would be appreciated.
Thanks
Fi
I currently have a VB6 program that we use to transfer times and dates of completed helpdesk jobs into a time recording system. We recently had an upgrade to our helpdesk system to Access 2000 and I am having great problems getting the vb6 program to work with it. I have added the MS DAO 3.6 object library and I am still getting errors. It is now complaining of a 'malformed guid in query experession' and I have no idea what this means as the sql statement is identical to the one I used when we had Access 97. This is the current sql statement:
stmt = "select WO_NUM,TYPE,ASSNDATE,COMPLETED,RESPONS,HOURS from TASKS where assndate >= {^" & Format(DTPStartDate, "yyyy-mm-dd") & "} and completed <= {^" & Format(DTPEndDate, "yyyy-mm-dd") & "} and completed > {^1995-01-01} and RESPONS = '" & Responsible & "' order by TYPE"
I have a feeling it is something to do with the dates and have tried taking the date formatting out and I actually get data but I get everything and not between the specified dates.
Any help or advice would be appreciated.
Thanks
Fi