Using Crystal Reports 8.0 I have a created a report with a Lotus Domino Server view as the data source. Each data field in the Lotus view was defined twice in the Available Fields list, once as type <string> and once as type <memo>. I selected fields of type <string> for my report.
After I completed the report development, I wanted to export the data from the report to a Microsoft Access 2000 database. I created a new Microsoft Access database and then defined an ODBC Microsoft Database connection.
When I initiated the export from Crystal Reports, I received two errors via pop-up boxes. First, "Failed to export the report." Second, "Failed to export the report. [Microsoft] [ODBC Microsoft Access Driver] Syntax error in field definition."
After I modified the ODBC connection definition to turn on SQL tracing, in the ODBC SQL log file I received the following error informaiton:
dde 45c-610 ENTER SQLExecDirect
HSTMT 02772008
UCHAR * 0x0012EC94 [ -3]
"CREATE TABLE CREXPORT2 ( DE_docID<String> VARCHAR(255), DE_creationDate<String> VARCHAR(255), DE_modificationDate<String> VARCHAR(255), DE_caseManager<String> VARCHAR(255), DE_referredBy<String> VARCHAR(255), DE_referredTo<String> VARCHAR(255), DE_lastName<String> VARCHAR(255), DE_firstName<String> VARCHAR(255), DE_middleInitial<String> VARCHAR(255), DE_countyOfResidence<String> VARCHAR(255), DE_primaryServiceOffice<String> VARCHAR(255), DE_swipeCardNumber<String> VARCHAR(255), DE_homePhone<String> VARCHAR(255), DE_employerPhone<String> VARCHAR(255), DE_cellPhone<String> VARCHAR(255), DE_pagerNumber<String> VARCHAR(255), DE_emailAddress<String> VARCHAR(255), DE_homeStreetAddress1<String> VARCHAR(255), DE_homeStreetAddress1B<String> VARCHAR(255), DE_homeCity<String> VARCHAR(255), DE_homeState<String> VARCHAR(255), DE_homeZip<String> VARCHAR(255), DE_alternateStreetAddress1<String> VARCHAR(255), DE_alternateStreetAddress2<String> VARCHAR(255), DE_alternateCity<String> VARCHAR(255), DE_alternateState<String> VARCHAR(255), DE_alternateZip<String> VARCHAR(255), DE_followupContactLastName1<String> VARCHAR(255), DE_followupContactFirstName1<String> VARCHAR(255), DE_followupContactPhone1<String> VARCHAR(255), DE_followupContactPhoneType1<String> VARCHAR(255), DE_followupContactLastName2<String> VARCHAR(255), DE_followupContactFirstName2<String> VARCHAR(255), DE_followupContactPhone2<String> VARCHAR(255), DE_followupContactPhoneType2<String> VARCHAR(255), DE_SSN<String> VARCHAR(255), DE_disability<String> VARCHAR(255), DE_gender<String> VARCHAR(255), DE_dateOfBirth<String> VARCHAR(255), DE_age<String> VARCHAR(255), DE_citizenshipStatus<String> VARCHAR(255), DE_alienRegCardNumber<String> VARCHAR(255), DE_race<String> VARCHAR(255))\ 0"
SDWORD -3
dde 45c-610 EXIT SQLExecDirect with return code -1 (SQL_ERROR)
HSTMT 02772008
UCHAR * 0x0012EC94 [ -3]
"CREATE TABLE CREXPORT2 ( DE_docID<String> VARCHAR(255), DE_creationDate<String> VARCHAR(255), DE_modificationDate<String> VARCHAR(255), DE_caseManager<String> VARCHAR(255), DE_referredBy<String> VARCHAR(255), DE_referredTo<String> VARCHAR(255), DE_lastName<String> VARCHAR(255), DE_firstName<String> VARCHAR(255), DE_middleInitial<String> VARCHAR(255), DE_countyOfResidence<String> VARCHAR(255), DE_primaryServiceOffice<String> VARCHAR(255), DE_swipeCardNumber<String> VARCHAR(255), DE_homePhone<String> VARCHAR(255), DE_employerPhone<String> VARCHAR(255), DE_cellPhone<String> VARCHAR(255), DE_pagerNumber<String> VARCHAR(255), DE_emailAddress<String> VARCHAR(255), DE_homeStreetAddress1<String> VARCHAR(255), DE_homeStreetAddress1B<String> VARCHAR(255), DE_homeCity<String> VARCHAR(255), DE_homeState<String> VARCHAR(255), DE_homeZip<String> VARCHAR(255), DE_alternateStreetAddress1<String> VARCHAR(255), DE_alternateStreetAddress2<String> VARCHAR(255), DE_alternateCity<String> VARCHAR(255), DE_alternateState<String> VARCHAR(255), DE_alternateZip<String> VARCHAR(255), DE_followupContactLastName1<String> VARCHAR(255), DE_followupContactFirstName1<String> VARCHAR(255), DE_followupContactPhone1<String> VARCHAR(255), DE_followupContactPhoneType1<String> VARCHAR(255), DE_followupContactLastName2<String> VARCHAR(255), DE_followupContactFirstName2<String> VARCHAR(255), DE_followupContactPhone2<String> VARCHAR(255), DE_followupContactPhoneType2<String> VARCHAR(255), DE_SSN<String> VARCHAR(255), DE_disability<String> VARCHAR(255), DE_gender<String> VARCHAR(255), DE_dateOfBirth<String> VARCHAR(255), DE_age<String> VARCHAR(255), DE_citizenshipStatus<String> VARCHAR(255), DE_alienRegCardNumber<String> VARCHAR(255), DE_race<String> VARCHAR(255))\ 0"
SDWORD -3
DIAG [37000] [Microsoft][ODBC Microsoft Access Driver] Syntax error in field definition. (-3553)
Information in the Crystal Decisions Knowledgebase indicates that field names may not contain "special" characters. It is my belief that the underscore character in the "DE_" that is prepended to the field name or the "<" or ">" in the "<string>" appended at the end of each field name may be the source(s) of the error.
Is this a correct assumption? If so, is it possible to instruct Crystal Reports to omit "DE_" or "<string>" from the field names in the SQL defined to create the Microsoft Access table?
From the Crystal Decisions Knowledgebase I determined that the DE_ is generated because the data fields are coming from the Detail section of the report. Also, the Knowledgebase described a StripString function that can be downloaded from the Crystal Decisions web site, but I believe that this funtion acts upon the contents of a data field and not the name of the data field.
Thanks in advance for any help with this problem.
After I completed the report development, I wanted to export the data from the report to a Microsoft Access 2000 database. I created a new Microsoft Access database and then defined an ODBC Microsoft Database connection.
When I initiated the export from Crystal Reports, I received two errors via pop-up boxes. First, "Failed to export the report." Second, "Failed to export the report. [Microsoft] [ODBC Microsoft Access Driver] Syntax error in field definition."
After I modified the ODBC connection definition to turn on SQL tracing, in the ODBC SQL log file I received the following error informaiton:
dde 45c-610 ENTER SQLExecDirect
HSTMT 02772008
UCHAR * 0x0012EC94 [ -3]
"CREATE TABLE CREXPORT2 ( DE_docID<String> VARCHAR(255), DE_creationDate<String> VARCHAR(255), DE_modificationDate<String> VARCHAR(255), DE_caseManager<String> VARCHAR(255), DE_referredBy<String> VARCHAR(255), DE_referredTo<String> VARCHAR(255), DE_lastName<String> VARCHAR(255), DE_firstName<String> VARCHAR(255), DE_middleInitial<String> VARCHAR(255), DE_countyOfResidence<String> VARCHAR(255), DE_primaryServiceOffice<String> VARCHAR(255), DE_swipeCardNumber<String> VARCHAR(255), DE_homePhone<String> VARCHAR(255), DE_employerPhone<String> VARCHAR(255), DE_cellPhone<String> VARCHAR(255), DE_pagerNumber<String> VARCHAR(255), DE_emailAddress<String> VARCHAR(255), DE_homeStreetAddress1<String> VARCHAR(255), DE_homeStreetAddress1B<String> VARCHAR(255), DE_homeCity<String> VARCHAR(255), DE_homeState<String> VARCHAR(255), DE_homeZip<String> VARCHAR(255), DE_alternateStreetAddress1<String> VARCHAR(255), DE_alternateStreetAddress2<String> VARCHAR(255), DE_alternateCity<String> VARCHAR(255), DE_alternateState<String> VARCHAR(255), DE_alternateZip<String> VARCHAR(255), DE_followupContactLastName1<String> VARCHAR(255), DE_followupContactFirstName1<String> VARCHAR(255), DE_followupContactPhone1<String> VARCHAR(255), DE_followupContactPhoneType1<String> VARCHAR(255), DE_followupContactLastName2<String> VARCHAR(255), DE_followupContactFirstName2<String> VARCHAR(255), DE_followupContactPhone2<String> VARCHAR(255), DE_followupContactPhoneType2<String> VARCHAR(255), DE_SSN<String> VARCHAR(255), DE_disability<String> VARCHAR(255), DE_gender<String> VARCHAR(255), DE_dateOfBirth<String> VARCHAR(255), DE_age<String> VARCHAR(255), DE_citizenshipStatus<String> VARCHAR(255), DE_alienRegCardNumber<String> VARCHAR(255), DE_race<String> VARCHAR(255))\ 0"
SDWORD -3
dde 45c-610 EXIT SQLExecDirect with return code -1 (SQL_ERROR)
HSTMT 02772008
UCHAR * 0x0012EC94 [ -3]
"CREATE TABLE CREXPORT2 ( DE_docID<String> VARCHAR(255), DE_creationDate<String> VARCHAR(255), DE_modificationDate<String> VARCHAR(255), DE_caseManager<String> VARCHAR(255), DE_referredBy<String> VARCHAR(255), DE_referredTo<String> VARCHAR(255), DE_lastName<String> VARCHAR(255), DE_firstName<String> VARCHAR(255), DE_middleInitial<String> VARCHAR(255), DE_countyOfResidence<String> VARCHAR(255), DE_primaryServiceOffice<String> VARCHAR(255), DE_swipeCardNumber<String> VARCHAR(255), DE_homePhone<String> VARCHAR(255), DE_employerPhone<String> VARCHAR(255), DE_cellPhone<String> VARCHAR(255), DE_pagerNumber<String> VARCHAR(255), DE_emailAddress<String> VARCHAR(255), DE_homeStreetAddress1<String> VARCHAR(255), DE_homeStreetAddress1B<String> VARCHAR(255), DE_homeCity<String> VARCHAR(255), DE_homeState<String> VARCHAR(255), DE_homeZip<String> VARCHAR(255), DE_alternateStreetAddress1<String> VARCHAR(255), DE_alternateStreetAddress2<String> VARCHAR(255), DE_alternateCity<String> VARCHAR(255), DE_alternateState<String> VARCHAR(255), DE_alternateZip<String> VARCHAR(255), DE_followupContactLastName1<String> VARCHAR(255), DE_followupContactFirstName1<String> VARCHAR(255), DE_followupContactPhone1<String> VARCHAR(255), DE_followupContactPhoneType1<String> VARCHAR(255), DE_followupContactLastName2<String> VARCHAR(255), DE_followupContactFirstName2<String> VARCHAR(255), DE_followupContactPhone2<String> VARCHAR(255), DE_followupContactPhoneType2<String> VARCHAR(255), DE_SSN<String> VARCHAR(255), DE_disability<String> VARCHAR(255), DE_gender<String> VARCHAR(255), DE_dateOfBirth<String> VARCHAR(255), DE_age<String> VARCHAR(255), DE_citizenshipStatus<String> VARCHAR(255), DE_alienRegCardNumber<String> VARCHAR(255), DE_race<String> VARCHAR(255))\ 0"
SDWORD -3
DIAG [37000] [Microsoft][ODBC Microsoft Access Driver] Syntax error in field definition. (-3553)
Information in the Crystal Decisions Knowledgebase indicates that field names may not contain "special" characters. It is my belief that the underscore character in the "DE_" that is prepended to the field name or the "<" or ">" in the "<string>" appended at the end of each field name may be the source(s) of the error.
Is this a correct assumption? If so, is it possible to instruct Crystal Reports to omit "DE_" or "<string>" from the field names in the SQL defined to create the Microsoft Access table?
From the Crystal Decisions Knowledgebase I determined that the DE_ is generated because the data fields are coming from the Detail section of the report. Also, the Knowledgebase described a StripString function that can be downloaded from the Crystal Decisions web site, but I believe that this funtion acts upon the contents of a data field and not the name of the data field.
Thanks in advance for any help with this problem.