calulated filed in query by from two seperate tables

Certified

Board Regular
Joined
Jan 24, 2012
Messages
189
I have two tables TheMemo and TheComments.

I created a query with data from both tables (qry Template upload)

TheMemo has the following fields:
Entity Number (short string)
Memo (Long String)
Action (Long String)
Check (Yes/No)
Updated Comments (Long string)

TheComments has the following fields:
Entity Number (Short String)
Comments (Long text)

The template upload query contains:
Entity Number (relationship)
Memo (From Memo)
check (from Memo)
Updated comments (From memo)
Comments(from Comments)

I built the following formula in updated comments:
iif([check] = True, [TheMemo]![Memo] & " " & [TheComments]![Comments],[Comments])

My issue is when I run the query, the formula does not work. The updated Comments field is blank.

Does anyone have an idea why?
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
The posts that were made yesterday were lost, so I will respond again.

What are you doing this in? Access? SQL? Something else?
I ask because Access does have a "long string" data type, so it make me believe that you may be using some other sort of program.

Also, please post the SQL code from your query.
 
Upvote 0

Forum statistics

Threads
1,214,593
Messages
6,120,435
Members
448,962
Latest member
Fenes

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