Validate Data Against An Excel Document

L

LyLy

Hello,

I was wondering if it is possible to validate information entered in a
InfoPath 2003 form against an Excel document? The Excel document could have
hundreds or thousands of lines of data and what is entered in the form must
be listed in the Excel document, if it is not a message should tell the user
that their selection is invalid. If so, how do I set up the validation in
the form?
 
G

Greg Collins

I believe you can export your Excel document as XML and then establish a
data connection to that XML file, read it in, and walk through it (using
code) to see if there is a match.
 
L

LyLy

Thanks Greg,
Would you be able to point me to detail instructions on how to do this via
code? Any further information would be greatly appreciated.

Thanks again,
LyLy
 
G

Greg Collins

If you are familiar with coding practices in relation to the main DOM, then
this should be easy for you--its just a matter of reading from the secondary
DOM instead of the main DOM.

I not, I don't have any specific site to point you to. You'll need to find
something in the coding language you are familiar with, though, to make it
easier to understand what they are doing.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top