Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
|
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 12th, 2006, 12:16 PM
Registered User
 
Join Date: Jun 2006
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to scubasteve
Default Access import and table manipulation

I have a XML data file I receive that comes into Access 2003. All the fields are defined as Text, however, there are two fields that need to be Number/Double. There is no way I am going to be able to have the XML file changed. Is there some way through VB code to change the data type on this table on the fly through calling the code in a macro? I don't want to have to stop and change the data types manually.

Thank you.

Neil
 
Old June 12th, 2006, 12:57 PM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

I am not sure if there is a more elegant way, but you can write a routine that reads the XML file a line at a time, and then types the data before it pushes it into the final table.

You may also want to push the XML file into Excel and then convert the column, and then pull the spreadsheet.

Need any help?

mmcdonal





Similar Threads
Thread Thread Starter Forum Replies Last Post
Fail to auto import excel to access table Ivanchan Access VBA 2 April 19th, 2007 09:34 PM
Import XML to SQL table Colonel Angus SQL Server 2000 4 March 23rd, 2007 08:37 AM
Access Database Manipulation From Gridview hawkfb63 ASP.NET 1.x and 2.0 Application Design 0 May 4th, 2006 04:47 PM
ADO vs DAO for table manipulation hashtlishnii Access VBA 3 September 26th, 2005 09:10 PM
identify textboxes in table for manipulation yeetesh ASP.NET 1.0 and 1.1 Basics 1 September 4th, 2005 11:27 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.