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 Build a Microsoft SharePoint Site Multi-Lingual Site
How to Add a Chat to Microsoft SharePointHow to Edit Microsoft Publisher Files on Mac
How to Import/Export Excel Into Microsoft SharePointHow to Save Microsoft Forms as a Template
How to Change the Time Zone in Microsoft TeamsHow to Use Multiple Sharing Options in Microsoft Forms
How to Change Status on Microsoft SharePointHow To Make/Create a Mirror Image in Microsoft Publisher [Templates + Examples] 2023
How to Create Sequence Diagram Using Microsoft VisioHow to Make a Supertype and Subtype in Microsoft Visio
How to Create Link to Download File in Microsoft SharePointHow to Download Folder From Microsoft Sharepoint
How to Share a Microsoft SharePoint Site ExternallyHow To Make/Create a Booklet in Microsoft Publisher [Templates + Examples] 2023
How to Flip Shape in Microsoft VisioHow to Make a Calendar in Microsoft Publisher
How to Trim Shapes and Lines in Microsoft VisioHow to Print a Brochure on Microsoft Publisher
How Do I Upgrade to 64-bit Microsoft VisioHow to Make a Brochure in Microsoft Publisher
How to Create a Poster in Microsoft PublisherHow to Build Organization Chart Microsoft Visio
How to Increase Print Resolution of Image in Microsoft PublisherHow to Record Microsoft Teams Meeting
How to Change Border Title in Microsoft VisioHow to Make Microsoft Teams Stay Green
How to Mute/Unmute a Chat in Microsoft TeamsHow to Create a Banner in Microsoft Publisher
How to Convert Microsoft Visio to PDFHow to Add Microsoft Visio to Office 365
How to Register for a Microsoft Office Account to Use for Microsoft TeamsHow to See Multiple People at the Same Time in a Meeting on Microsoft Teams
How to Join a Microsoft Teams MeetingHow to Access Microsoft Visio
How to Create a Logo in Microsoft PublisherHow to Create Class Diagram in Microsoft Visio
How to Delete/Remove a Page in Microsoft SharePointHow to Change Logo on Microsoft SharePoint
How to Use Microsoft SharepointHow to Print Microsoft Visio Document
How to Embed a Modern Calendar to Microsoft SharePointHow To Create a Book in Microsoft Publisher
How to Convert Microsoft Visio Object to JPEGHow to Copy and Paste Objects in Microsoft Publisher
How to Delete A File in Microsoft SharePointHow to Fully Close Microsoft Teams
How to Send a Form on a Group Chat in Microsoft TeamsHow to Create a Flowchart in Microsoft Visio
How to Blur Background on Microsoft TeamsHow to Change Background on Microsoft Teams
Microsoft TeamsHow to Create a Simple Microsoft SharePoint Blog
How to Convert Microsoft Publisher File to PDFHow to Open a Microsoft Publisher File
How to Print in Microsoft PublisherHow to Create a Folder in Microsoft Sharepoint
How to Switch Microsoft Word from Dark ModeHow to Set Margins in Microsoft Word
How to Insert Horizontal Lines in Microsoft WordHow to Landscape on Microsoft Word
How To Make/Create a Document in Microsoft Publisher [Templates + Examples] 2023How to Create A Team in Microsoft Teams
How to Block Someone on Microsoft TeamsHow to View the Microsoft Teams Meeting Link in Outlook
How do I Merge Microsoft Publisher FilesHow to Change Name/Status on Microsoft Teams
How to Add Multiple Users in a Chat Group in Microsoft TeamsHow to Make/Create a Border in Microsoft Publisher [Templates + Examples] 2023
How to Add Someone External to Microsoft TeamsHow to Sign in/Sign Out of Microsoft Teams
How to Create a Newsletter in Microsoft PublisherHow to Download Microsoft Publisher for Free [Templates + Examples] 2023
bottom banner