I am going slightly up the wall with this, so hopefully someone can help me.
I have the following sql in VBA, but am getting a syntax in join operation error - the query runs fine on the sql server. Anyone know what I am doing wrong?
I have the following sql in VBA, but am getting a syntax in join operation error - the query runs fine on the sql server. Anyone know what I am doing wrong?
Code:
Me.RecordSource = ("SELECT dbo_tbldCases.* FROM ((dbo_tbllClientGroups INNER JOIN" & _
"dbo_tbllClientGroupAssoc ON dbo_tbllClientGroups.ClientGroupID = dbo_tbllClientGroupAssoc.ClientGroupID) INNER JOIN" & _
"dbo_tbldPeople ON dbo_tbllClientGroupAssoc.ClientTypeID = dbo_tbldPeople.ClientT) INNER JOIN" & _
"dbo_tbldCases ON dbo_tbldPeople.CaseID = dbo_tbldCases.CaseID" & _
"WHERE tbllClientGroupAssoc.ClientGroupID = " & Me.cmbFilterClientType & ";")