Ashank4vba
Programmer
Hello,
I cannot figure out why I keep getting the error "Type mismatch in expression" every time I try to execute/open the following query in design view.
Here is the query
The access help files say that the error message is due to mismatch types in the join expression.
Both LRQC_ISSUES_UNION and LRQC_ISSUE_STATUS are queries.
I am able to open both of them in design view without any error.
The ISSUE_NO fields in both queries 'should be strings'.
The 'union' query assigns values to ISSUE_NO as follows - ISSUE_NO:"<some number here>" while the other 'STATUS' query uses this 'ISSUE_NO: CStr([ISSUE_NUMBER])'
So as far as my understanding goes, both are strings rt?
Also, the guy who gave me the query to analyze said this (I cant make sense of this too)
Please please help
.
-cheers
Ashank
I cannot figure out why I keep getting the error "Type mismatch in expression" every time I try to execute/open the following query in design view.
Here is the query
Code:
SELECT LRQC_ISSUES_UNION.*, LRQC_ISSUE_STATUS.ISSUE_STATUS
FROM LRQC_ISSUES_UNION INNER JOIN LRQC_ISSUE_STATUS ON LRQC_ISSUES_UNION.ISSUE_NO=LRQC_ISSUE_STATUS.ISSUE_NO
WHERE (((LRQC_ISSUE_STATUS.ISSUE_STATUS)="Open") AND ((LRQC_ISSUES_UNION.PROBLEM_RESOLVED_DT) Is Null Or (LRQC_ISSUES_UNION.PROBLEM_RESOLVED_DT)=""));
The access help files say that the error message is due to mismatch types in the join expression.
Both LRQC_ISSUES_UNION and LRQC_ISSUE_STATUS are queries.
I am able to open both of them in design view without any error.
The ISSUE_NO fields in both queries 'should be strings'.
The 'union' query assigns values to ISSUE_NO as follows - ISSUE_NO:"<some number here>" while the other 'STATUS' query uses this 'ISSUE_NO: CStr([ISSUE_NUMBER])'
So as far as my understanding goes, both are strings rt?
Also, the guy who gave me the query to analyze said this (I cant make sense of this too)
Since I have imported all tables from Oracle, some queries might require you to change the DATA_TYPE....feel free to make appropriate changes to make it work.
Please please help
-cheers
Ashank