Click here to Skip to main content
16,013,082 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi, I am having problems finding a way to look up a record in a external database, Access 2007, and using the query data to populate fields in a list's NewForm, How do I get the values from a SQLDataSouce to pass through to parameters?
I'll Revise as ask.

I need to do a simple lookup of a table in an Access 2007 database, using user input from a sharepoint site. The user would enter a UID and click a submit button. A query would create a connect to the database from Sharepoint, and query the table for a record. Once a record is found in the database, I need to created a new record (item) in a list in my sharepoint site, useing the information from the recordset, but I want to give the users a way to edit the data before saving the item to the list. My problem at this point is I can not get the entered UID value passed to the query, nor can I get record passed to the SP Form. If I hard code the UID into the query, I get a record, but then I can not populate the form with the information.

Has anyone done something like this that could advise me as to what I need to do to pass the record information into the list's newform.aspx
(yes I did create a custom form, and can pass information to the fields from another list.)
Posted
Updated 26-Apr-10 10:20am
v3

1 solution

External lists (also called virtual lists) are a good starting point. They were introduced in SharePoint 2010.

http://msdn.microsoft.com/en-us/library/ee558778(office.14).aspx


http://channel9.msdn.com/posts/kmcgrath/Creating-an-External-List-in-SharePoint-by-Using-Business-Data/
 
Share this answer
 
v2
Comments
weatherman522 24-May-10 14:36pm    
Thanks, I'll bookmark these for now. The company I work for is not upgrading to 2010 presently. I did find a way to do what I was asking though, but needed to pull the information out of Access and use a SQLExpress database, it means an extra update for me but it works, Just finishing up the forms now.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900