Update/Insert Into Queries/SmartConnect

jrsarrat

New Member
Joined
Jul 8, 2018
Messages
47
Hi, there!

I am writing to my trusted source to rule out that my vision is not executable. Here goes:

I want to update an existing field with its previous/existing values and in conjunction tack on new values. Is there a way for me to do this? Can I concatenate the value from the existing field w/ new values from the same field? As a caveat, I am using SmartConnect to do this (by creating a new task). I came up with two different queries hoping to execute my thoughts:

UPDATE tblNAME
SET fieldNAME=fieldNAME+ ', ' + 'fieldNAME'
WHERE Master_ID = 'PayerID' ---Master_ID is a field from tblNAME, and Payer_ID is a field from the Excel sheet that has the new value to be added to fieldNAME.

INSERT INTO tblNAME (fieldNAME)
SELECT fieldNAME
FROM tblNAME


WHERE Master_ID = 'PayerID'---the same is true as above.
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.

Forum statistics

Threads
1,215,680
Messages
6,126,188
Members
449,296
Latest member
tinneytwin

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