If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Import from excel

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-18-09, 13:27
Alflashy Alflashy is offline
Registered User
 
Join Date: Nov 2009
Posts: 16
Import from excel

Hi I am importing data from excel and it works fine here is code I am using to import.

Private Sub Command9_Click()
DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel11, _
"myTable", "C:\Users\XPS\Desktop\AccessDB\Book1.xls", True

End Sub

but when the button is click again then data from the Book1.xls is imported again as new Entry. So is it possible to stop import one its done or import only if new data is found in Book1.xls

Thank you
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On