in

SharePoint Blogs

The Best Place for SharePoint-related Blogs

This Blog

Syndication

All About SharePoint - S.S. Ahmed - MVP Microsoft SharePoint

All About SharePoint, as the name suggests, is all about SharePoint. It has articles, tutorials, source code, FAQs, and tips about SharePoint, InfoPath, C#, Microsoft Office, SQL Server, XML, etc.

Exporting data from Access to SharePoint and Importing data into InfoPath from a SharePoint List

Category: Administration

Level: Beginner 

This beginner level tutorial will show you how you can export data from Access to SharePoint and then import data from a SharePoint list into InfoPath. Let me tell you that you can also create an InfoPath form that could access data in an external database including Access. Using a built-in wizard in InfoPath, creating such a form is very easy. You can display data from Access in the InfoPath form. You can also incorporate search feature with ease using the wizard. This tutorial is divided into parts. The first part shows how to export data to SharePoint from an Access database. 

Export data from Access to a SharePoint list.

Detailed Steps:

1.       Export Access data to a SharePoint list. Go to 'External Data' in Access and select 'SharePoint List' from the 'Export' section.

Well, honestly speaking that's the only step required. Using the wizard you can either select a pre-built SharePoint list or you can create a new one before exporting data.

 

Importing data from a SharePoint list into an InfoPath Form

1.       Create a new data connection in InfoPath and select following options:

a.       Create a new connection > Receive data

     

b.      Select “SharePoint library or list” option.

c.       Enter the (SharePoint) list's path where you exported the Access data.

d.      Select your list from the list of lists and libraries.

e.       Select the field (or fields) that you want to show in InfoPath.

f.        Check 'Store a copy of the data in the form template'.

g.        Add a name for the data connection and check the “Automatically retrieve data when form is opened” option.

h.      Click “Finish”.

Use following steps to populate a text box with data imported from MS Access:

1.       Add a text box in your form.

2.       Right click the text box and select “Text Box Properties” to open the properties page. Enter a default value for this field (Click the button (fx) shown on the right side of the “value” text box).

      3. Click 'Insert Field or Group…' button.

      4. Select secondary data source from the 'Data source' drop down.

      5. Expand all nodes until you see field names. Select the field that you want to retrieve value from.

      6. Click OK twice and that's it!

You can use more fields to display data from different columns of the Access table.

 

Comments

 

Blogger Loser » Blog Archive » Importing MS Access data in InfoPath said:

Pingback from  Blogger Loser  » Blog Archive   » Importing MS Access data in InfoPath

September 5, 2007 4:55 AM
 

Ramachandran Pillai said:

Hi,

Your site is loaded with very informative stuff.  I have a blog site too, launched about a year back at msaccessblog.blogspot.com

if you would like to exchange links with my site please let me know, it will be mutually beneficial. My e-mail address: apr_pillai@yahoo.com

Thanks,

October 19, 2007 8:48 AM
 

konquistador said:

Hi, That is a very useful post. Using this method i am able to create a Infopath form prefilled with values from a row is Access table. But, how would you repeat this for each row in Access table. I need to create a Infopath form for each row....

Thanks,

Kon

December 3, 2007 5:54 AM
 

ssa said:

konquistador,

I am sure I was not in my senses when I wrote this article. I will remove or udpate this article very soon because importing data from Access is supported in Infopath. Use database wizard to select the database and the table. Infopath will automatically create the data sources for you. Drag the data node into the form and select repeating table. This will display all the data using rows in your form. Let me know if you have any other questions and apologies to all for this misleading article.

December 13, 2007 10:42 AM
 

SharePoint, SharePoint and stuff said:

SharePoint und Reporting Services SharePoint and Reporting Services - Introduction SharePoint and Reporting

January 8, 2008 3:47 AM
 

Mirrored Blogs said:

SharePoint und Reporting Services SharePoint and Reporting Services - Introduction SharePoint and Reporting

January 9, 2008 7:09 PM
 

Nick said:

Don't remove the article - I still found it information and interesting. Simply update/correct what is necessary and let us keep it alive on the net for more to find and enjoy. As I continue my learning of SharePoint and InfoPath, stuff like this just gets my brain going. So keep it alive, and I appreciate the follow-up and corrections!

October 7, 2008 10:45 PM
 

ssa said:

Thanks Nick! :)

October 11, 2008 9:55 PM

Leave a Comment

(required )  
(optional )
(required )  
Add

About ssa

MOSS MVP - Over 8 years experience. 4 years SharePoint experience!

Need SharePoint Training? Attend a SharePoint Bootcamp!

Posts (c) their respective authors. Everything else (c) 2007 SharePoint Experts