I want to use the Connection functionality in Excel 2010 to connect to a SQLSERVER 2008 database and populate column X based upon using a value in Excel column A as the primary key (loop thru the column), but unable to find out how.
I have tried (typing in the command text window)
select name
from pbaTable
where
pbaid = (and this is where I'm stuck)...
Tried the following
?
&Worksheet("safety stock").range(A1:A10).value
$A$1
etc.
I have tried (typing in the command text window)
select name
from pbaTable
where
pbaid = (and this is where I'm stuck)...
Tried the following
?
&Worksheet("safety stock").range(A1:A10).value
$A$1
etc.