Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / April 2006

Tip: Looking for answers? Try searching our database.

Query InfoPath from Access

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Chris Mahoney - 05 Apr 2006 03:36 GMT
Hello everyone

Hopefully this is my last problem :)

I have a button in Access which opens InfoPath and updates a field. I
then wish to requery so that the updated field is used. I have the
following code in Access:

Dim objInfoPath As New InfoPath.Application
objInfoPath.XDocuments.NewFromSolution "D:\Path\To\manifest.xsf"
objInfoPath.XDocuments(0).DOM.SelectSingleNode("//my:AppNumber").Text =
123
objInfoPath.XDocuments(0).DataAdapters("Main connection").Query

Unfortunately, that fails at .DataAdapters with "Method or data member
not found."

I'm sure I'm missing something simple, so any advice would be
appreciated.

Thanks
Chris
Chris Mahoney - 06 Apr 2006 02:47 GMT
Got it :)

I added an OnAfterChange event to the AppNumber textbox, then did the
query in there.

Chris
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.