Solved

Infopath Form - Query Repeating Table from Access Submitting to Access

Posted on 2013-10-22
2
945 Views
Last Modified: 2013-10-22
I want to create a form that submits to an Access 2007 database. The main purpose for the form is to allow the user to submit request for vacation time. I wanted add the abiliity for the user to see their vacation time summary as well. This information is also stored in the same database and for which I have created a query for. I figured I would add the prebuilt query to the form as a secondary data source and that would be ran when the user request to see the data. For some reason I thought I would be able to set a filter (username()) before executing the query but I dont see where I can do that. I see it on the main source but not the secondary sources. Can someone tell me what I am missing? I am I able to do this? Do I need to add some code to perform the filtering?
0
Comment
Question by:spaced45
2 Comments
 
LVL 28

Accepted Solution

by:
clayfox earned 500 total points
ID: 39592649
You cannot filter secondary sources when using an ODBC connection like that.

So on the repeating field or dropdown you put a filter to hide what you do not want.  This is not as efficient as a query but it gets the job done.
You can create a formatting rule which hides where username does not equal name in the Access Data.
0
 
LVL 1

Author Comment

by:spaced45
ID: 39592687
I was afraid I was going to get this response. Thank you for your assistance.
0

Featured Post

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Note:  There are two main ways to deploy InfoPath forms:  Server-side and directly through the SharePoint site.  Deploying a server-side InfoPath form means the form is approved by the Administrator, thus allowing greater functionality in the form. …
Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
Familiarize people with the process of utilizing SQL Server stored procedures from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Micr…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question