Foxpro and crystal 9 - data location at runtime
- From: "TPG" <me@xxxxxxxxxxx>
- Date: Fri, 11 Nov 2005 13:03:17 +1000
I have upgraded to crystal 9, and am having problems with my vb code which
sets the database location. This code worked fine with crystal 8.
My reports use an ODBC connection to the foxpro data (free tables). In
crystal 8 I used this syntax :
crpDatabaseTable.SetLogOnInfo "Visual Foxpro Tables", "DBQ=" &
strNewLocation
Under Crystal 9 this doesnt seem to work and I get unable to logon errors.
I have also tried using the ole db provider for visual foxpro, and this
allows me to set the location in code without problems, however whenever
there is a date range clause in the record selection I get an error message
saying "Column 'DATETIME' is not found. On viewing the sql clause in the
crystal report, it has included this as part of the where clause, eg :
`TRANS`.`trandate`>=CONVERT(DATETIME, '01-01-2003', 110)
I have moved away from using direct connection to foxpro data due to
performance issues with the direct driver (odbc is much faster and uses
indexes better), so I dont want to go backwards if I can help it.
Has anyone been able to get odbc or oledb connections working with foxpro
tables, AND been able to set the data location at runtime successfully ?
HELLPPPP!!! PLEASE !!!
thanks:)
.
- Follow-Ups:
- Prev by Date: Re: Showing distinct records in labels
- Next by Date: Re: How to count acculumate field in different Grouping
- Previous by thread: Deployment with VB6 and crystal 4.6 (SCR)
- Next by thread: Re: Foxpro and crystal 9 - data location at runtime
- Index(es):