Query fails, incorrect use of join ?

kirkm

Registered User.
Local time
Today, 14:27
Joined
Oct 30, 2008
Messages
1,257
I supect my design is flawed

Code:
    SELECT tblData2.Prefix, tblData2.LineNum, tblData2.Year, tblComments.comment, tblComments.Address
    FROM tblData2 LEFT JOIN tblComments ON tblData2.LineNum = (NumbersOnly([tblComments].[Address])
    WHERE (((tblData2.MyYear)<1990))
    ORDER BY tblData2.LineNum;
The NumbersOnly function returns a set of numbers from a custom formatted string.
The above fails on the join (I think) but maybe there's another way of doing it?
Thanks for any advice.
 
Maybe, but I do know you have a syntax error: You're missing a closing parenthesis in the JOIN,.
 
jdraw, my apologies... never knew there was a connection. I'd waited a couple of days and no answer (which I still need) so thought I'd try somewhere else. Plus the issue had sidetracked to a non relevant discussion and I altered my post here to avoid that. I've read the here's why and understand for the future. plog - may thanks. That was the issue :)
 
Glad you have it solved.
 

Users who are viewing this thread

Back
Top Bottom