Re: 2 tables 1 report issue
Quote:
strsql = "SELECT tblUser.UserName, tblUser.Administrator, Security_Access.Site_ID FROM tblUser INNER JOIN Security_Access ON tblUser.UserName = Security_Access.UserName"
VB Code:
strsql = "SELECT Distinct tblUser.UserName, tblUser.Administrator, Security_Access.Site_ID FROM tblUser INNER JOIN Security_Access ON tblUser.UserName = Security_Access.UserName"
Re: 2 tables 1 report issue
Thanks for your reply but DISTINCT and DISTINCTROW did not work. I'm still getting the duplicate records.
mmars
Re: 2 tables 1 report issue
I don't know what and how is the information stored in the two tables. Did you try to copy the query into Query Analyzer?... Maybe you must modify the JOIN... (Perhaps a LEFT or RIGHT?)
Regards,
Tribo