MS ACCESS, VB Import External MS Access table into SQL server table -


i have access database acting user interface. have linked sql server 2008 table in access database. on user interface there various filters/criteria user selects (such date, external ms access database, etc. these utilized in importing database. right importing external ms access database user selects internal table on user interface. goal import data directly sql server table. possible?

here how doing now.

 dim select_file string  dim varfile variant  dim dbmonth string  dbmonth = me.month.value '<-- month either default current month of user selects in combobox on user interface  ' there code here has user select external access database , varfile = .selecteditems  select_file = varfile       docmd.transferdatabase acimport, "microsoft access", select_file, actable, "table_" & dbmonth & "_all", "table" 

so table "table" has data external ms access database user selected. wondering if there simple way import data directly sql server table. attempted change "table" name linked sql server table imports local table named same thing "_1" after it.

i think can want executing "append query".

i unsure names, in example [table] native access table contains source data , [sql server table] link destination table on server.

insert [sql server table] (fld1, fld2, fld3) select t.fld1, t.fld2, t.fld3 [table] t 

Comments

Popular posts from this blog

python - TypeError: start must be a integer -

c# - DevExpress RepositoryItemComboBox BackColor property ignored -

django - Creating multiple model instances in DRF3 -