InfoPath validating data before going through to Access database

Posted on 2012-09-18
Last Modified: 2012-09-19

I set up the following form in Infopath using the wizard to connect it to an Access database
How do I now add valudation to the fields? Should I have done it in the Access database first before creating the form?


Question by:murbro
    LVL 28

    Expert Comment

    you must submit.

    I believe you should already have the submit data connection, since it is in your main data schema, web services, SharePoint, email, etc you create manually.

    Add a button that is a rules type and set the action to submit data.  Real straight forward.

    You need to spend some time playing with it and getting a feel for it.
    LVL 28

    Assisted Solution

    Not sure what I just read, its early.
    Validation can be done a number of ways.

    You can have rules and actions on each field that checks the value and notifies the user.  You can disable fields if previous fields are blank or not the right values.

    Or you can check everything at the end when they submit.
    LVL 6

    Accepted Solution

    the form is supposed to validate - and infopath does that very well
    in design mode,
    you can define what rules apply to each field (select Rules in 2010 or Data Validation in 2007)
    the validation will define if one can submit to the database or not
    you can also restrict the number of values for a field by replacing textboxes with dropdowns
    etc etc

    Author Closing Comment

    Thanks very much

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    In the previous article, Using a Critera Form to Filter Records (, the form was basically a data container storing user input, which queries and other database objects could read. The form had to remain op…
    Today's users almost expect this to happen in all search boxes. After all, if their favourite search engine juggles with tens of thousand keywords while they type, and suggests matching phrases on the fly, why shouldn't they expect the same from you…
    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…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    728 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

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now