Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combobox : What Am I missing?
Message
From
21/02/2014 12:50:45
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Combobox : What Am I missing?
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01594899
Message ID:
01594899
Views:
82
Bound column = 2
Column count = 1
Control source= name of the required
RowSource = SQL construct
RowSourceType = 3 (SQL Statement)
Style = 2 (dropdown list)

The problem is that the returned value should be the primary key associated with the selected field.

Instead it returns the number of what I selected



Example

Displayed Value

Name, Primary key
==============

Bob,25
Sam,32

Instead of returning 25 when I select Bob the value that goes in the table is 1.

What's wrong here?
*******************************************************
Save a tree, eat a beaver.
Denis Chassé
Next
Reply
Map
View

Click here to load this message in the networking platform