Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

No results with INNER JOIN

Status
Not open for further replies.

brews

Technical User
Dec 12, 2007
194
US
I have three tables, Members, Events and EventDetails where I want to get the data from EventDetails for A record. Using this INNER JOIN but get a BOF/EOF error:
lngID = the MemberID of record needed.
Code:
sSql = "SELECT EventDetails.EventQty, EventDetails.EventAttend, EventDetails.EventAmount," & _
           " Members.MemberID, Events.EventName" & _
           " FROM Members INNER JOIN (Events INNER JOIN EventDetails ON Events.EventID = EventDetails.EventID)" & _
           " ON (Members.MemberID = EventDetails.MemberID) AND (Members.MemberID = EventDetails.MemberID)" & _
           " WHERE Members.MemberID=" & lngID

Only variation that seems to work is Select * From table.

Any ideas would be helpful.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top