DbLookupListbox 
Author Message
 DbLookupListbox

Can anybody on the face of this earth tell me how to do the following?

Form1 has a DbLookuplistbox which shows nice data like it should (and
has an item selected).
In some other window, i change the cursorposition in the (same)
datasource.
How do i get the DbCombolookuplistbox to select the active record in
the datasource. (I've configured the control to work with
"ListSource".)

Or can't it work like this? Can somebody tell me?

L8r. MW.



Mon, 19 Apr 1999 03:00:00 GMT  
 DbLookupListbox

Try setting the KeyValue property of the LookupListBox to the value you
want rather than positoning the datasource.
Cheers Mike.

Quote:
> Form1 has a DbLookuplistbox which shows nice data like it should (and
> has an item selected).
> In some other window, i change the cursorposition in the (same)
> datasource.
> How do i get the DbCombolookuplistbox to select the active record in
> the datasource. (I've configured the control to work with
> "ListSource".)

> Or can't it work like this? Can somebody tell me?

> L8r. MW.



Fri, 23 Apr 1999 03:00:00 GMT  
 DbLookupListbox


Quote:
>Try setting the KeyValue property of the LookupListBox to the value you
>want rather than positoning the datasource.
>Cheers Mike.

>> Form1 has a DbLookuplistbox which shows nice data like it should (and
>> has an item selected).
>> In some other window, i change the cursorposition in the (same)
>> datasource.
>> How do i get the DbCombolookuplistbox to select the active record in
>> the datasource. (I've configured the control to work with
>> "ListSource".)

And you know what!? It works, oh thank you, oh guru!
L8r. MW.


Sat, 24 Apr 1999 03:00:00 GMT  
 DbLookupListbox

Quote:

> Can anybody on the face of this earth tell me how to do the following?

> Form1 has a DbLookuplistbox which shows nice data like it should (and
> has an item selected).
> In some other window, i change the cursorposition in the (same)
> datasource.
> How do i get the DbCombolookuplistbox to select the active record in
> the datasource. (I've configured the control to work with
> "ListSource".)

> Or can't it work like this? Can somebody tell me?

> L8r. MW.

 Consider your DBLookuplistbox to have name DBLLB
 and your other control as OtherC

   You should have 3 relevant datasources:  The "datasource" for
LLB, the lookupdatasource for LLB and the datasource for OtherC.
Are you saying that the lookupdatasource for LLB and for OtherC
are the same datasource component?   (And not two separate datasources
that point to the same underlying table?)
  I would think this should work, but I am not sure how the
Lookuplist processes notifications from its datasource.  I am
away from my PC now so I can't check this out.  Please let me know
what you find.

--
Paul Schopf                          
Coupled Climate Dynamics Group/971    
NASA Goddard Space Flight Center              
Greenbelt, MD 20771



Sat, 24 Apr 1999 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. How can I sort a DBLookuplistbox???

2. Begin or End of table error using DBlookuplistbox component

3. OnDblClick in DBLookupListBox

4. Focus in DBLookupListBox?

5. Items count for a DBlookuplistbox?

6. DBLookupListBox weird behavior

7. DBLookUpListBox bug???

8. Changing display width in DBLookupListBox

9. DBLookupListBox

10. Q: MultiSelect in DBLookupListBox?

11. How to fill DBLookuplistbox with the result of a query

12. Multi-Field in DBLookupListbOx Help

 

 
Powered by phpBB® Forum Software