hello,
been searching for a solution on this but
all i get are advices for importing the
whole worksheet directly to MS Access DB.
my case here is different...the data are scattered
in different cells in a worksheet...the rest of the cells
are not needed for importing...
i just need to get data from a certain cell using VBA
then save the data to MS Access DB.
Example:
I have one table in Access called "tblTable".
The columns are Col1, Col2, Col3, Col4, Col5, Col6.
The data to be inserted in this table are in different cells in Excel.
The locations are Sheet1 in A1, A2, C5 then Sheet2 in B4, B5, G7.
Let's say:
[tblTable].Col1 = Sheet1!A1
[tblTable].Col2 = Sheet1!A2
[tblTable].Col3 = Sheet1!C5
[tblTable].Col4 = Sheet2!B4
[tblTable].Col5 = Sheet2!B5
[tblTable].Col6 = Sheet2!G7
is this possible?
if so, how?
badly need advices from the experts and the experienced,
keirnus
been searching for a solution on this but
all i get are advices for importing the
whole worksheet directly to MS Access DB.
my case here is different...the data are scattered
in different cells in a worksheet...the rest of the cells
are not needed for importing...
i just need to get data from a certain cell using VBA
then save the data to MS Access DB.
Example:
I have one table in Access called "tblTable".
The columns are Col1, Col2, Col3, Col4, Col5, Col6.
The data to be inserted in this table are in different cells in Excel.
The locations are Sheet1 in A1, A2, C5 then Sheet2 in B4, B5, G7.
Let's say:
[tblTable].Col1 = Sheet1!A1
[tblTable].Col2 = Sheet1!A2
[tblTable].Col3 = Sheet1!C5
[tblTable].Col4 = Sheet2!B4
[tblTable].Col5 = Sheet2!B5
[tblTable].Col6 = Sheet2!G7
is this possible?
if so, how?
badly need advices from the experts and the experienced,
keirnus