Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combo Box with Dynamic DataTable
Message
From
24/07/2000 11:52:36
Victoria Mckee
Kansas City Life Insurance Co
Kansas City, Missouri, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Combo Box with Dynamic DataTable
Miscellaneous
Thread ID:
00396176
Message ID:
00396176
Views:
40
I have a combo box (originally created with the builder) that has its RowSource (hierarchy.dbf) that has an ever changing record count. The record count is from 1 to 7 records.

When the form is activated, it correctly gathers and displays the records from hierarchy.dbf. However, if the form embraces a new record (agents.dbf - ControlSource for combo box is agents.whosebusaddr) and the hierarchy.dbf has fewer records, the form fails displaying the following message:

Error #5 - Record is out of range.

Since it is critical that the combo box accept the new record count, do I need to load the hierarchy.dbf records as the RowSource text and use RowSourceType of 1 - Value rather then RowSourceType of 2 - Alias as I currently have in the properties?

Since this system is used all day by one department in our company, performace time does matter.

Any suggestions would be helpful.
Next
Reply
Map
View

Click here to load this message in the networking platform