Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dropdown box question
Message
From
17/09/2000 13:47:51
 
 
To
17/09/2000 13:39:26
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00417427
Message ID:
00417430
Views:
14
Hi Alex.

>An employee table has a field which contains a foreign key to the department table. In the employee maintenence form I have a dropdown control that shows all departments. Do the tables need to be related or does the ControlSource and RowSource properties of the dropdown take care of the connection ?

You do not need to set a relation between the tables. You can set up your combo like thid:

RowSourceType = 6-Fields
RowSource = Department.DeptDescription, DeptPK
ColumnCount = 2
ColumnWidths = 200,0
BoundColumn = 2
BoundTo = .T.
Value = 0
ControlSource = Employee.DeptFK

Marcia
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform