I have two tables acc_accounts and lst_lost and a combobox cboUrl.
I need to select the email fields named ACC_Email and LST_Email where the value from cboUrl exist in either one or both tables. The data could be in both or only one of them.
I tried something like this:
Thank youSELECT ACC_Email,LST_Email FROM (ACC_Accounts LEFT JOIN LST_Lost ON ACC_Accounts.ACC_Url = LST_Lost.LST_Url) WHERE [ACC_Url] LIKE [Forms]![ACC_Accounts_frm]!cboUrl AND LST_Url LIKE [Forms]![ACC_Accounts_frm]!cboUrl
I think you would need a UNION query to extract the fields from both tables, where the url is the one you want.
Good luck.
Right. Thanks man. I didn't know where my head was.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks