Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / February 2007

Tip: Looking for answers? Try searching our database.

Populating drop-down based on database records

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
scottchampion@gmail.com - 13 Feb 2007 23:49 GMT
I need to display one value in a form drop down, but insert another
value when the user clicks submit.

I have created a form that inserts records into an Access database
table.  Each record in the table requires an EmployeeID (among other
things).  The problem is that users do not know employees by their
Employee ID.  To resolve this problem, I need the form to display a
drop down menu containing employee names.  When users submit data,
InfoPath needs to convert the name into an Employee ID then insert the
record into the table.

I assume that this is not only possible, but also elementary.  Can
anyone point me in the correct direction to solve this problem?  I
would like to make use of my Employee table which associates employee
names and employeeIDs.

Thanks!
Scott
Ishai Sagi - 13 Feb 2007 23:58 GMT
You are correct. it is simple.

When you go into the dropdown properties, you will find that when binding
the dropdown you have different boxes for "display" and for "value". You need
to configure the datasource to return for each row (each employee) both the
ID and the display name, and bind the dropdown to display the names, but
store the values.
Signature

Ishai Sagi
www.spstips.blogspot.com
Developer tips for SharePoint

> I need to display one value in a form drop down, but insert another
> value when the user clicks submit.
[quoted text clipped - 14 lines]
> Thanks!
> Scott
scottchampion@gmail.com - 14 Feb 2007 23:00 GMT
On Feb 13, 3:58 pm, Ishai Sagi
<dontwantspamh...@gmail.com.DONOTSPAM.DELETETHIS> wrote:
> You are correct. it is simple.
>
[quoted text clipped - 26 lines]
> > Thanks!
> > Scott

This worked perfectly.  Thanks!
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.