nmathews Posted January 21, 2004 Share Posted January 21, 2004 I'm making a results page for a organization with members names and email address on my website. The thing is, not every member has an email address. The secertary only enters the email address in of the member and uploads in though Access 97. I have set up an extra table that would include the fallowing fields: ID, Firstname, Lastname, email. The code that I came up with is: SELECT emails.*, members.* FROM emails INNER JOIN members ON emails.ID = members.ID ORDER BY members.lastname ASC This works, but it only pulls up members with email addresses in both tables. How do I make it so that if the address does not exsit, it just leaves the field blank on the report, but still shows the members name Quote Link to comment Share on other sites More sharing options...
BinaryStar Posted January 21, 2004 Share Posted January 21, 2004 Not sure if this will work but it is worth a try...just switch everything... You had: SELECT emails.*, members.* FROM emails INNER JOIN members ON emails.ID = members.ID ORDER BY members.lastname ASC Try: SELECT members.*, emails.* FROM members INNER JOIN emails ON members.ID = email.ID ORDER BY members.lastname ASC that might possibly do the trick... Let me know the outcome BS Quote Link to comment Share on other sites More sharing options...
nmathews Posted January 22, 2004 Author Share Posted January 22, 2004 I got the same results switching it around.. Any other ideas? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.