Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combobox : What Am I missing?
Message
 
 
To
21/02/2014 12:50:45
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
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:
01594903
Views:
59
Check BoundTo property and set it to true.

>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?
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform