SQL Mismatch in From Statement
600 pts.
0
Q:
SQL Mismatch in From Statement
What need to be done if an error message mentions "Mismatch in From Statesmen"?

It seems like I have not done any different then what I have done over the last numerous of queries that I have done. I started with an excel spreadsheet. I had to do some concatenation of the some columns. I then copied and pasted my final concatenation column into an access database. Save it and name it, "Red and Back". The other database is forming the AS400 and each of the database or table and queries work ok by them self, fine. What are some possible issues?

 SELECT [72IN0140wOE].PN, [Red and Black].Field1

FROM [Red and Black] RIGHT JOIN 72IN0140wOE ON [Red and Black].Field1 = [72IN0140wOE].PN;



Software/Hardware used:
MS Access98, AS400 Midragne, Windows XP,
ASKED: Sep 17 2009  4:23 PM GMT
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
0
29845 pts.
0
A:
 RATE THIS ANSWER
0
Click to Vote:
  •   0
  •  0
  • AddThis Social Bookmark Button
The situation is I have an error message that mentions a mismatch in the from statement. What is a mismatch in the From statement? Can any one explain the different situations that would generate this type of error message? For a little background as to how the data was gathered. If I trace my action, I receive an excel spreadsheet. I needed to "text to column” or subdivide one column. Then add in a column to be able to generate a new number for multiple columns by concatenate. I then took the concatenated column and copied and pasted it into an access spreadsheet. Then when I used the Access dB as a part of my query I received the error.

----------

I'd say the JOINs are part of the FROM clause, so if you are joining on columns with different data types, it could cause a type 'mismatch' error.

Also, have you tried this ? :

FROM [Red and Black] RIGHT JOIN [72IN0140wOE] ON [Red and Black].Field1 = [72IN0140wOE].PN;
Last Answered: Sep 18 2009  11:05 PM GMT by Carlosdl   29845 pts.
Latest Contributors: CompEng   600 pts.
0
0
Discuss This Answer:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _



0