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.

Configure Drop Down to Display Values from Multiple Database Columns

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
scottchampion@gmail.com - 14 Feb 2007 23:23 GMT
I've got a drop down whose values are based on an access database
table.  The access database table has the following columns:

ID, Description, Points

Currently, the values in the Description field populates the drop down
menu.  I'd like the drop down to also display the values in the Points
field:

For example:

The database table contains:
ID, Description, Points
1, Happy, 2
2, Sad, 8
3, Elated, 1

Drop down displays:
Happy (2)
Sad (8)
Elated (1)

Can someone point me to a resource on this?  I suppose I could write
an Access query that combines fields prior to pulling them into
InfoPath but I'd rather not clutter up my database with queries
specific to an InfoPath form.

Any other ideas?
scottchampion@gmail.com - 14 Feb 2007 23:47 GMT
On Feb 14, 3:23 pm, scottchamp...@gmail.com wrote:
> I've got a drop down whose values are based on an access database
> table.  The access database table has the following columns:
[quoted text clipped - 24 lines]
>
> Any other ideas?

It appears that I was able to concat these two columns in the SQL
query in InfoPath my doing the following:

Tools --> Data Connections
Modify the data connection associated with the drop down
I then edited the sql statement

SELECT tbl.ID, [tbl].[Description] & ' (' & [tbl].[Value] & ' points)'
AS Description
FROM tbl;

I received a warning stating that the SQL statement cannot be
represented as a tree view but everything seemed to work correctly.
Are there any draw backs to my configuration?
 
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.