Get Access to World’s largest Template Library & Tools

How to Setup Microsoft Access Database Connection

By using Microsoft Access, users can add a secondary data connection to the database, but by doing so, Access can only handle queries. On the other hand, users are unable to add a secondary data connection that sends form data to a Microsoft Access database.

How to Setup Microsoft Access Database Connection

You can create a form template based on a Microsoft Access database and then enable the submit data connection in the primary data connection if you want your users to submit form data to an Access database. As an alternative, you can extend a Web service that integrates with your Access database using a secondary data connection.

  • Step 1: Add Secondary Data Connection

    Go to the Data Connections on the Tools menu and click Add. In the Data Connection Wizard, select “Create a new connection to”, then “Receive data” and “Next”. Then, hit Database (Microsoft SQL Server or Microsoft Office Access only), and click Next. Choose “Select Database”. In the Select Data Source dialog box, locate your database and click Open. Next, select the primary table or query you wish to use in the Select Table dialog box, then click OK. Check the Show table columns checkbox. Clear the check boxes next to any fields that you don’t want the secondary data source to include. You can add any additional tables or queries to the data connection. Click Next. Select the “Store a copy of the data in the form template” checkbox, then click Next to make the results of the query data connection accessible even when the form is not connected to a network. Assign the secondary data connection a name, and then make sure the data in the Summary section is accurate. Check the “Automatically retrieve data when a form is opened” checkbox to set up the form to automatically receive data when it is opened.

  • Step 2: Setup the Data Connection in the Form Template

    To use the data connections, you can either set up a rule or a button. To add a rule, click “View name” on the View menu. Double-click on the Control to add a rule. Select the Data tab and choose Rules under Validation and Rules. Select Add from the Rules dialog box and type the rule name in the Name field. After clicking Set Condition, enter the condition to determine under what circumstances the rule should be run. Select “Add Action” and in the Action list, click “Query using a data connection”. Then, click the query data connection that you want to use, and click OK. On the other hand, to add a button, click “View name” on the View menu. If the Controls task pane is not visible, press ALT+I, C or select More Controls from the Insert menu. Then, drag a button control onto your form template and double-click it. Hit the General tab and click Refresh under the Action list. In the Label box, type the button name. After that, select Settings and choose one of the following actions in the Refresh dialog box: Either click “All secondary data sources” or “One secondary data connection” and then click a secondary data source in the Choose the secondary data source list. Finally, click OK.

FAQs

How do I add additional tables or queries to the data connection?

Under the Select Table dialog box of the Data Connections wizard, click Add Table, then in the Query dialog box, click the name of the child table, and then click Finish and repeat the steps to add another table.

How can the form template be set up to use the data connection?

You may add a rule to the form template that utilizes this data connection only in particular circumstances, or you can add a button to the form template that your users can click to use this data connection.

What is a secondary data connection?

A secondary data connection is a data connection that you include in a form template.

More in Microsoft Office

How Can I Run Microsoft Visio on MacHow to Create Custom Shapes in Microsoft Visio
Microsoft PublisherHow to Use Microsoft SharePoint in Business
How to Edit Body Header in Microsoft VisioHow to Add Legend in Microsoft Visio
How to Flatten an Image in Microsoft PublisherHow to Add a Subscript/Superscript to Microsoft Visio
How Can I Insert People in Microsoft Visio DiagramsHow To Create UML Diagrams in Microsoft Visio
How to Know the Version of Microsoft PublisherHow to Use Layers in Microsoft Visio
How To Create a Gantt Chart in Microsoft VisioHow to Add a Background in Microsoft Publisher
How to Use Microsoft SharePoint in BusinessHow Can Multiple People Edit a Document in Microsoft Visio
How to Add Arrow in Microsoft VisioHow to Make a Copy Group Form in Microsoft Forms for Reusing
How to Open a Microsoft Publisher Document Without PublisherHow to Download Multiple Files from Microsoft SharePoint Online
How to Create a Website Page Using Microsoft PublisherHow to Turn On Content Approval in SharePoint
How to Convert SharePoint Online Site to Microsoft TeamsHow to Stop Microsoft Teams from Automatically Opening
How to Print a Booklet in Microsoft PublisherHow to Create Flows in Microsoft Teams
How to Run Microsoft Publisher on ChromebookHow to Use Microsoft Teams with Other Platforms
How to Build a Microsoft SharePoint Site Multi-Lingual SiteHow to Add a Chat to Microsoft SharePoint
How to Edit Microsoft Publisher Files on MacHow to Import/Export Excel Into Microsoft SharePoint
How to Save Microsoft Forms as a TemplateHow to Change the Time Zone in Microsoft Teams
How to Use Multiple Sharing Options in Microsoft FormsHow to Change Status on Microsoft SharePoint
How To Make/Create a Mirror Image in Microsoft Publisher [Templates + Examples] 2023How to Create Sequence Diagram Using Microsoft Visio
How to Make a Supertype and Subtype in Microsoft VisioHow to Create Link to Download File in Microsoft SharePoint
How to Download Folder From Microsoft SharepointHow to Share a Microsoft SharePoint Site Externally
How To Make/Create a Booklet in Microsoft Publisher [Templates + Examples] 2023How to Flip Shape in Microsoft Visio
How to Make a Calendar in Microsoft PublisherHow to Trim Shapes and Lines in Microsoft Visio
How to Print a Brochure on Microsoft PublisherHow Do I Upgrade to 64-bit Microsoft Visio
How to Make a Brochure in Microsoft PublisherHow to Create a Poster in Microsoft Publisher
How to Build Organization Chart Microsoft VisioHow to Increase Print Resolution of Image in Microsoft Publisher
How to Record Microsoft Teams MeetingHow to Change Border Title in Microsoft Visio
How to Make Microsoft Teams Stay GreenHow to Mute/Unmute a Chat in Microsoft Teams
How to Create a Banner in Microsoft PublisherHow to Convert Microsoft Visio to PDF
How to Add Microsoft Visio to Office 365How to Register for a Microsoft Office Account to Use for Microsoft Teams
How to See Multiple People at the Same Time in a Meeting on Microsoft TeamsHow to Join a Microsoft Teams Meeting
How to Access Microsoft VisioHow to Create a Logo in Microsoft Publisher
How to Create Class Diagram in Microsoft VisioHow to Delete/Remove a Page in Microsoft SharePoint
How to Change Logo on Microsoft SharePointHow to Use Microsoft Sharepoint
How to Print Microsoft Visio DocumentHow to Embed a Modern Calendar to Microsoft SharePoint
How To Create a Book in Microsoft PublisherHow to Convert Microsoft Visio Object to JPEG
How to Copy and Paste Objects in Microsoft PublisherHow to Delete A File in Microsoft SharePoint
How to Fully Close Microsoft TeamsHow to Send a Form on a Group Chat in Microsoft Teams
How to Create a Flowchart in Microsoft VisioHow to Blur Background on Microsoft Teams
How to Change Background on Microsoft TeamsMicrosoft Teams
How to Create a Simple Microsoft SharePoint BlogHow to Convert Microsoft Publisher File to PDF
How to Open a Microsoft Publisher FileHow to Print in Microsoft Publisher
How to Create a Folder in Microsoft SharepointHow to Switch Microsoft Word from Dark Mode
How to Set Margins in Microsoft WordHow to Insert Horizontal Lines in Microsoft Word
How to Landscape on Microsoft WordHow To Make/Create a Document in Microsoft Publisher [Templates + Examples] 2023
How to Create A Team in Microsoft TeamsHow to Block Someone on Microsoft Teams
How to View the Microsoft Teams Meeting Link in OutlookHow do I Merge Microsoft Publisher Files
How to Change Name/Status on Microsoft TeamsHow to Add Multiple Users in a Chat Group in Microsoft Teams
How to Make/Create a Border in Microsoft Publisher [Templates + Examples] 2023How to Add Someone External to Microsoft Teams
How to Sign in/Sign Out of Microsoft TeamsHow to Create a Newsletter in Microsoft Publisher
bottom banner