BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

targeting an item in a dbLookupcomboBox

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OLE Automation
View previous topic :: View next topic  
Author Message
Martin Hayes
Guest





PostPosted: Mon Dec 20, 2004 1:16 pm    Post subject: targeting an item in a dbLookupcomboBox Reply with quote



Hi all,

I have linked a DBLookupComboBox to a database - this works fine . however
what i want to do is make it show a specific item in the list when the form
opens.

ie if i open the form then it will automaticly target my name in the list,
but still let me use the drop down to see the other names.

I am able to get the windows user name however i dont know the command for
targeting my name in the DBLookupComboBox list.

Any help would be fantastic !!!!
Thanks
Martin


Back to top
Mike Shkolnik
Guest





PostPosted: Mon Dec 20, 2004 2:42 pm    Post subject: Re: targeting an item in a dbLookupcomboBox Reply with quote



Martin,

DBLookupComboBox display the item that corresponded to value in field for
current record. So if you'll change the value in record (or move the
position in dataset), then DBLookupComboBox will display the another value

--
With best regards, Mike Shkolnik
EMail: [email]mshkolnik (AT) scalabium (DOT) com[/email]
http://www.scalabium.com

"Martin Hayes" <martin_john_hayes (AT) hotmail (DOT) com> wrote

Quote:
Hi all,

I have linked a DBLookupComboBox to a database - this works fine . however
what i want to do is make it show a specific item in the list when the
form
opens.

ie if i open the form then it will automaticly target my name in the list,
but still let me use the drop down to see the other names.

I am able to get the windows user name however i dont know the command for
targeting my name in the DBLookupComboBox list.

Any help would be fantastic !!!!
Thanks
Martin





Back to top
Martin Hayes
Guest





PostPosted: Mon Dec 20, 2004 4:05 pm    Post subject: Re: targeting an item in a dbLookupcomboBox Reply with quote



Hi

I am still having problems !!!
When i load up the form it is always blank - until i hit the drop down.
Any more ideas !

Thanks lots
Martin
"Mike Shkolnik" <mshkolnik2002 (AT) ukr (DOT) net> wrote

Quote:
Martin,

DBLookupComboBox display the item that corresponded to value in field for
current record. So if you'll change the value in record (or move the
position in dataset), then DBLookupComboBox will display the another value

--
With best regards, Mike Shkolnik
EMail: [email]mshkolnik (AT) scalabium (DOT) com[/email]
http://www.scalabium.com

"Martin Hayes" <martin_john_hayes (AT) hotmail (DOT) com> wrote in message
news:41c6d092 (AT) newsgroups (DOT) borland.com...
Hi all,

I have linked a DBLookupComboBox to a database - this works fine .
however
what i want to do is make it show a specific item in the list when the
form
opens.

ie if i open the form then it will automaticly target my name in the
list,
but still let me use the drop down to see the other names.

I am able to get the windows user name however i dont know the command
for
targeting my name in the DBLookupComboBox list.

Any help would be fantastic !!!!
Thanks
Martin







Back to top
Mike Shkolnik
Guest





PostPosted: Mon Dec 20, 2004 7:32 pm    Post subject: Re: targeting an item in a dbLookupcomboBox Reply with quote

Check the value in field when your form activated.
Did you open the form for new record? If yes, just apply the value that you
want in OnNewRecord event for your dataset

PS: anyway this is not a topic for b.p.d.oleautomation forum
--
With best regards, Mike Shkolnik
E-mail: [email]mshkolnik (AT) scalabium (DOT) com[/email]
WEB: http://www.scalabium.com

"Martin Hayes" <martin_john_hayes (AT) hotmail (DOT) com> wrote

Quote:
Hi

I am still having problems !!!
When i load up the form it is always blank - until i hit the drop down.
Any more ideas !

Thanks lots
Martin
"Mike Shkolnik" <mshkolnik2002 (AT) ukr (DOT) net> wrote in message
news:41c6e492$1 (AT) newsgroups (DOT) borland.com...
Martin,

DBLookupComboBox display the item that corresponded to value in field
for
current record. So if you'll change the value in record (or move the
position in dataset), then DBLookupComboBox will display the another
value

--
With best regards, Mike Shkolnik
EMail: [email]mshkolnik (AT) scalabium (DOT) com[/email]
http://www.scalabium.com

"Martin Hayes" <martin_john_hayes (AT) hotmail (DOT) com> wrote in message
news:41c6d092 (AT) newsgroups (DOT) borland.com...
Hi all,

I have linked a DBLookupComboBox to a database - this works fine .
however
what i want to do is make it show a specific item in the list when the
form
opens.

ie if i open the form then it will automaticly target my name in the
list,
but still let me use the drop down to see the other names.

I am able to get the windows user name however i dont know the command
for
targeting my name in the DBLookupComboBox list.

Any help would be fantastic !!!!
Thanks
Martin









Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OLE Automation All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.