G
Guest
I used the example database DUANE HOOKOM has on a website, so I hoping he
sees this and responds. I am not by any means a programmer and welcome all
input. A person in my company used crystal reports to dump all of the
information into an Access database. Every incident is numbered like so
YYYYMMDD####. There are multiple narratives per incident : 1 through
infinity. There are then multiple line numbers per narrative. The data has
been extracted from a DB2 using crystal reports. I was told don't ask, but
that format had to be this way.
Example data
strIncidentNumber intNarrativeNumber intNarrativeLineNumber strNarrative
200508100027 1 1 blah blah
200508100027 1 2
200508100027 1 3
200508100027 1 4
200508100027 1 5
200508100027 1 6
200508100027 1 7
200508100027 1 8
200508100027 1 9
200508100027 2 1
200508100027 2 2
200508100027 2 3
200508100027 2 4
200508100027 2 5
200508100027 3 1
200508100027 3 2
200508100027 3 3
200508100027 3 4
200508100027 3 5
When I run the code I have I get :
Run-time error '2147217900 (80040e14)
Syntax error (missing operator) in query expression
'RMSandNameNarrativeNo = 200508100009 1'
Here is the Code in the query : Narrative: Concatenate("SELECT
strNarrativeText FROM Crexport5 WHERE RMSandNarrativeNo =" &
[RMSandNarrativeNo])
Here is my table setup
Table1
RMSandNarrativeNo text PRIMARY KEY
RMSno
CREXPORT5
RMSandNarrativeNo text FOREIGN KEY
strIncidentNumber text
intIncidentNarrativeNumber Number
intNarrativeLineNumber Number
intNarrativeType Text
strNarrativeText Text 255 characters
Thanks
Bryan
sees this and responds. I am not by any means a programmer and welcome all
input. A person in my company used crystal reports to dump all of the
information into an Access database. Every incident is numbered like so
YYYYMMDD####. There are multiple narratives per incident : 1 through
infinity. There are then multiple line numbers per narrative. The data has
been extracted from a DB2 using crystal reports. I was told don't ask, but
that format had to be this way.
Example data
strIncidentNumber intNarrativeNumber intNarrativeLineNumber strNarrative
200508100027 1 1 blah blah
200508100027 1 2
200508100027 1 3
200508100027 1 4
200508100027 1 5
200508100027 1 6
200508100027 1 7
200508100027 1 8
200508100027 1 9
200508100027 2 1
200508100027 2 2
200508100027 2 3
200508100027 2 4
200508100027 2 5
200508100027 3 1
200508100027 3 2
200508100027 3 3
200508100027 3 4
200508100027 3 5
When I run the code I have I get :
Run-time error '2147217900 (80040e14)
Syntax error (missing operator) in query expression
'RMSandNameNarrativeNo = 200508100009 1'
Here is the Code in the query : Narrative: Concatenate("SELECT
strNarrativeText FROM Crexport5 WHERE RMSandNarrativeNo =" &
[RMSandNarrativeNo])
Here is my table setup
Table1
RMSandNarrativeNo text PRIMARY KEY
RMSno
CREXPORT5
RMSandNarrativeNo text FOREIGN KEY
strIncidentNumber text
intIncidentNarrativeNumber Number
intNarrativeLineNumber Number
intNarrativeType Text
strNarrativeText Text 255 characters
Thanks
Bryan