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

combining two fields in a query

Status
Not open for further replies.

LELOA

Technical User
Nov 12, 2003
13
US
Hi
I have a query with multiple tables what I required is the following

Table 1 has a field label Scrubbed Part Number
Table 2 Has a field label Vendor Part number

what I need is if table 1's field is blank then insert table 2 field, if table 2's field is also blank then leave the field blank.

I hope this is sort of clear.

 
If I understand your question, try putting this field in your query....


PN:iif(isnull(ScrubbedPartNumber),iif(isnull(VendorPartNumber),"",VendorPartNumber,ScrubbedPartNumber))
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top