Good Afternoon Roy,
I have found the problem that I am having with regards to not being able to select the correct values from the lookup table. It appears to be when you place a filter on the table. So, here is what I have:
1. A lookup table with the following values:
DESCRIPTION CODE
Female F
Male M
Unknown U
Unless I physically type the word "Male", Female will always be select when filtering the table.
Scenario:
I have a large table filled with lookup values with the following columns:
CodeType
Code
Description
1. At runtime, when the application is started, I read all of the codes into my dataset so to limit the number of SQL queries I perform when using the lookup comboboxes.
2. Using the OnEnter event, I run the following code:
with DataSetLookup do begin
Filter := 'CodeType = ' + QuotedStr('Sex');
Filtered := True;
end;
This limits the results for the Sex field to only M (Male), F (Female), and U (Unknown).
If I remove the filter, I can type M and get Male, or F and get Female. If the filter is in place, only Female will be selected.
Thoughts?