UtterAccess.com
X   Site Message
(Message will auto close in 2 seconds)

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Importing data into a table    
 
   
kckmex
post Aug 2 2006, 06:32 PM
Post #1

UtterAccess Enthusiast
Posts: 97
From: Tijuana, Mexico



Is there a way to create a macro or command to import data. I currently go to file, get external data and start the import wizard. Is there a way through a command button to go directly to the import wizard.

Kevin
Go to the top of the page
 
+
freakazeud
post Aug 2 2006, 07:18 PM
Post #2

UtterAccess VIP
Posts: 31,413
From: NC, USA



Hi,
you can automate the whole process. Depending on what data you are trying to import you can use one of the following:
TransferDatabase method
TransferSpreadsheet method
TransferText method
If you clarify a little more what your import data looks like (format) then we can help you further with sample syntax or suggestions.
Furthermore, it is always recommended to first import into a new blank temp table and then use append queries to append the formated data to the tables of your choice. You can always drop the temp tables afterwards if you want.
HTH
Good luck
Go to the top of the page
 
+
kckmex
post Aug 2 2006, 07:22 PM
Post #3

UtterAccess Enthusiast
Posts: 97
From: Tijuana, Mexico



I am importing the date form an excel spreadsheet.
Go to the top of the page
 
+
freakazeud
post Aug 2 2006, 07:51 PM
Post #4

UtterAccess VIP
Posts: 31,413
From: NC, USA



So the transferspreadsheet method is what you would want to use.
HTH
Good luck
Go to the top of the page
 
+
kckmex
post Aug 3 2006, 05:48 AM
Post #5

UtterAccess Enthusiast
Posts: 97
From: Tijuana, Mexico



Is there anyway to create a command box to open the import wizard?
Go to the top of the page
 
+
freakazeud
post Aug 3 2006, 06:53 AM
Post #6

UtterAccess VIP
Posts: 31,413
From: NC, USA



You don't need the import wizard...the transferspreadsheet will do everything for you...if you want the user to select a file then use this code and pass the returned full string path to the filename argument of the transferspreadsheet method. You might find this lengthy but informative discussion helpful...it is the exact scenario, but only using transfertext to import a text file...use the transferspreadsheet method in that part.
HTH
Good luck
Go to the top of the page
 
+

Thank you for your support! Reply to this topicStart new topic

Jump To Forum:
 



RSS Go to Top  ·  Lo-Fi Version Time is now: 19th June 2013 - 01:18 PM