Help needed join fields from different tables

fibonaccistu

New Member
Joined
Mar 15, 2016
Messages
4
I'm having trouble with a query in Access. I have two columns for the description for inventory items. Standard and Extended. The two fields come from different tables. The standard description has a character limit of 29 characters. If a description is longer than this, it gets truncated at 29 characters, and the full description is written to the extended description field, otherwise the extended description is blank.

I'm trying to create a report based on inventory items ordered for each customer. I need to merge the two columns, but only if the extended description is blank. How can I accomplish this?
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Welcome to the Board!

How about something like this:
Code:
Description: IIF([Extended]="",[Standard],[Extended])
So, if the Extended field is blank, it will only return the Standard field. Otherwise, it will return the Extended field.
 
Upvote 0
I guess the field would be considered null not empty. would the code be:
Code:
iif([CI_ExtendedDescriptionText] is null, [CI_Item.ItemCodeDesc],[CI_ExtendedDescriptionText])
?
 
Upvote 0
If it is null, you could simply use the NZ function and make it real simple, i.e.
Code:
NZ([COLOR=#333333][CI_ExtendedDescriptionText],[/COLOR][COLOR=#333333][CI_Item.ItemCodeDesc])[/COLOR]

See here for the description on NZ: MS Access: Nz Function
 
Upvote 0

Forum statistics

Threads
1,221,819
Messages
6,162,155
Members
451,749
Latest member
zack_ken

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top