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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

lookup info from another table

Status
Not open for further replies.

tahoskier

MIS
Sep 27, 2001
24
US
I have a table with a list of jobcodes(JOBS). I'm trying to create a query to pull information from another table that has a DeptNo and A jobcode in it. If the record has a dept code of XXX then I want to check the jobecode against the records in the JOBS table. If the jobcode is in the JOBS table I then want to return a certain value.

Help.
 
Have a look at LEFT JOIN, IIf and Nz

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top