Hello,
I'm assuming that you are using InfoPath 2003...
Can you tell what the contents of thisXDocument are? Is it null or has it
been set properly by InfoPath? Usually you would get this error when
thisXDocument isn't set, so therefore it has no "DOM" method/property.
Gavin.

Signature
2B | !2B
> hey everyone i am still very new to this and I have an infopath form created
> with the tools for office. and the submit button has the following code
[quoted text clipped - 119 lines]
>
> thanks in advance
Buddyguy - 09 Apr 2008 01:56 GMT
HI Gavin,
i looked at that and at the beginning of the code it declares xdocument.
when i am in tommorow i will send you the code.
Thanks
Arley
> Hello,
>
[quoted text clipped - 129 lines]
> >
> > thanks in advance
Gavin McKay - 09 Apr 2008 02:08 GMT
No worries Arley, send it through whenever. I found this MS article which
might help as a starting point:
http://msdn2.microsoft.com/en-us/library/aa947932.aspx
By the looks of your code though I think you already have this covered.
Gavin.

Signature
2B | !2B
> HI Gavin,
>
[quoted text clipped - 138 lines]
> > >
> > > thanks in advance
Buddyguy - 09 Apr 2008 21:25 GMT
ok here is the code where it declares xdocument
Private thisXDocument As XDocument
Private thisApplication As Application
'Declare object for shared code
Private objShared As cscShared.InfoPathTools
Public Sub _Startup(ByVal app As Application, ByVal doc As XDocument)
thisXDocument = doc
thisApplication = app
' You can add additional initialization code here.
End Sub
> No worries Arley, send it through whenever. I found this MS article which
> might help as a starting point:
[quoted text clipped - 147 lines]
> > > >
> > > > thanks in advance