>>>i have had a problem with VFP and data entry. i have an app that has about 10 comboboxes with most of them being drop down lists.
>>>
>>>to minimize data entry the client would like this behaviour
>>>
>>>1. if a user clicks selects any entry it records the entry and then moves to the next field. I ACCOMPLISH THIS BY USING A SIMPLE "KEYBOARD {TAB}" ON THE INTERACTIVE CHANGE EVENT
>>>
>>>2. if any combobox gets focus either by clicking or tabbing to it, the entries in the dropdown list should automatically show up. I TRY TO DO THIS BY PUTTING IN A "KEYBOARD "{ALT+DNARROW}" PLAIN CLEAR" IN THE GOTFOCUS EVENT
>>>
>>>the form works to spec if the users goes through the fields in order and selects values for each. however if the user jumps around i have issues with the second requirement. on many fields, if not all, when a user clicks on certain fields, the drop down lists flashes open for a split second and then closes. the user must click on the drop down list a second time for it to open and remain open.
>>>
>>>any suggestions on this. i feel like i have tried every combination of events on this.
>>>
>>>thanks,
>>>
>>>vim
>>
>>Put in GotFocus:
>>
>>IF NOT MDOWN()
>> KEYBOARD "{ALT+DNARROW}" PLAIN CLEAR
>>ENDIF
>>
>
>Borislav,
>
>To take this question further:
>
>I have a combobox that has RowSourceType=1 (Value) and is populated with a string stored in a table, like 'A,B,C,D'. It changes values based on another combobox, refreshing the RowSource string from the current record of the table.
>
>However, when I refresh the string I want it to show the first element automatically, but it always shows a blank and makes me choose. I tried ListIndex=1 to no avail.
>
>Thanks,
Hmmm, this works for me:
thisform.Combo3.RowSource = [C,D,E]
thisform.Combo3.ListIndex = 1
Did you have a ControlSource for that Combo? If you have did you have any records in the table binded?
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.