C
Christine Kempenaar
Guest
I am new in the world of ACCESS'97.
But now I have to maintain an existing ACCESS'97 application and I have the following problem:
There is a Form, containing a ComboBox from which the user must select an item/record from a table.
That's a peace of cake ... Well, it is until you reach the limit of 65k records in that table.
Our table contains more than 99xxx records and beyond recordnumber 65xxx they are not displayed anymore.
This is solved by a SQL statement in the KeyUp-event of the ComboBox.
When Len(me.combobox.Text) >= 1 i.e. 'p', the sql query returns all records that start with character 'p'.
Next the user types character 'o' after the first 'p' and the sql query returns a smaller subset of the table;
But then the problem occurs, when the combobox dropdown button is pushed, the showlist starts at the bottom
of the found recordset??? instead of the first one. When next the DEL key is pressed, the showlist will jump to
the first record in the recordset. But the user does not want to press the DEL key every time to go to the first record.
I tried with SendKeys to add the DEL key, but SendKey triggers the KeyUp-event again and I end up in a loop.
If I look in the debug window (or with debug.print statement) I do see that the recordset contains the right
records in the right order. When I examine combobox.ListIndex it contains some large number, and only after pressing
the DEL key it returns to 0.
So I tried to force ListIndex to 0 by statement 'me.combobox.ListIndex = 0', but that statement also assigns
'me.combobox.Text/Value' to the first recordsetvalue; and thats also not wanted????
I'll hope someone can help me to solve this problem or can tell me what I do wrong.
Thanks
Christine Kempenaar
But now I have to maintain an existing ACCESS'97 application and I have the following problem:
There is a Form, containing a ComboBox from which the user must select an item/record from a table.
That's a peace of cake ... Well, it is until you reach the limit of 65k records in that table.
Our table contains more than 99xxx records and beyond recordnumber 65xxx they are not displayed anymore.
This is solved by a SQL statement in the KeyUp-event of the ComboBox.
When Len(me.combobox.Text) >= 1 i.e. 'p', the sql query returns all records that start with character 'p'.
Next the user types character 'o' after the first 'p' and the sql query returns a smaller subset of the table;
But then the problem occurs, when the combobox dropdown button is pushed, the showlist starts at the bottom
of the found recordset??? instead of the first one. When next the DEL key is pressed, the showlist will jump to
the first record in the recordset. But the user does not want to press the DEL key every time to go to the first record.
I tried with SendKeys to add the DEL key, but SendKey triggers the KeyUp-event again and I end up in a loop.
If I look in the debug window (or with debug.print statement) I do see that the recordset contains the right
records in the right order. When I examine combobox.ListIndex it contains some large number, and only after pressing
the DEL key it returns to 0.
So I tried to force ListIndex to 0 by statement 'me.combobox.ListIndex = 0', but that statement also assigns
'me.combobox.Text/Value' to the first recordsetvalue; and thats also not wanted????
I'll hope someone can help me to solve this problem or can tell me what I do wrong.
Thanks
Christine Kempenaar