Hello, my problem concerns using a wildcard in a query of an Access database. To make the problem easier to understand, I will reference the Northwind database example found on the Microsoft Help & Support page (http://support.microsoft.com/kb/826992).
With some copying/pasting/editing, I have been successful in enabling wildcard character for two query fields (Contact Name and Contact Title). This allows me to refine my search with two fields with wildcards.
Now when I add a table in the Data Connections (Products for example as there is a relationship with Supplier ID), the query function does not work. I get the message that is similar to many others I've seen in other posts:
The following error occurred:
The query method on the Document object failed.
InfoPath cannot run the specified query.
[0x80040E14][MSDataShape] Data shape command text contains a syntax error at or near position 350 in the command. The text near the error is: " [Products] WHERE ([Suppliers].[ContactName]".
File:script.js
Line:80
So the question is how can I enable a wildcard query when there are two tables in the Data Connection?