B
BBAL20
I'm trying to import certain columns within tables via ODBC currently stored
in a SQL enviroment. I'm a beginner when it comes to VB so please forgive me.
I've wrriten the following code to import the table but I only want certain
columns within that table, not the whole table. Suggestions?
Option Compare Database
Private Sub BASE_Click()
Dim SQL_Text As String
DoCmd.TransferDatabase acImport, "ODBC Database", _
"ODBC;DSN=ODS_FDR;APP=Microsoft Office
2003;WSID=PAS-KPATTERS;DATABASE=ODS_FDR;Trusted_Connection=YES;ArrayFetchOn=1;ArrayBufferSize=8", _
acTable , "dbo.BASE", "dbo_BASE" & Format(Date, "mmddyy")
MsgBox "Data transfer to Access is complete.", vbOKOnly, "Status"
End Sub
in a SQL enviroment. I'm a beginner when it comes to VB so please forgive me.
I've wrriten the following code to import the table but I only want certain
columns within that table, not the whole table. Suggestions?
Option Compare Database
Private Sub BASE_Click()
Dim SQL_Text As String
DoCmd.TransferDatabase acImport, "ODBC Database", _
"ODBC;DSN=ODS_FDR;APP=Microsoft Office
2003;WSID=PAS-KPATTERS;DATABASE=ODS_FDR;Trusted_Connection=YES;ArrayFetchOn=1;ArrayBufferSize=8", _
acTable , "dbo.BASE", "dbo_BASE" & Format(Date, "mmddyy")
MsgBox "Data transfer to Access is complete.", vbOKOnly, "Status"
End Sub