Greg Smith
gwsmith at iowatelecom.net
Tue Nov 28 09:46:42 CST 2006
Shamil: That is where the issue was. I changed the SAXXMLReader40 to SAXXMLReader60 in both places and now it runs without error. HOWEVER, it does not do anything. The table remains empty...nothing is imported. Samples 1 & 2 both import from the text files, but neither 3 nor 4 import anything. The table, if it has any contents, the contents are deleted and the table stays empty. Maybe SAXXMLReader60 will not work? Thanks! Greg ============================= Greg, I did try sample code with MSXML 6.0 and it worked OK. Try to debug/trace this function: My guess the problem is in this function: Public Function Parse(ByVal vstrURL As String, ByVal vstrTableName As String, ByVal vavarFields As Variant) Dim reader As SAXXMLReader40 mavarFields = vavarFields mstrTableName = vstrTableName mintFieldIndex = -1 mintFieldsCount = 0 Set reader = New SAXXMLReader40 Set reader.contentHandler = Me Set reader.errorHandler = Me reader.parseURL vstrURL End Function -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Greg Smith Sent: Tuesday, November 28, 2006 12:54 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] [Access-D] XML Import Sample File Hi Shamil: I'm currently set at MSXML 6 (MSXML6.dll). Greg > Hello Greg, > > Try to change reference to MSXML v.4.0 or above.... > > -- > Shamil <snip>