 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Martin Hayes Guest
|
Posted: Mon Dec 20, 2004 1:16 pm Post subject: targeting an item in a dbLookupcomboBox |
|
|
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
|
Posted: Mon Dec 20, 2004 2:42 pm Post subject: Re: targeting an item in a dbLookupcomboBox |
|
|
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
|
Posted: Mon Dec 20, 2004 4:05 pm Post subject: Re: targeting an item in a dbLookupcomboBox |
|
|
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
|
Posted: Mon Dec 20, 2004 7:32 pm Post subject: Re: targeting an item in a dbLookupcomboBox |
|
|
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 |
|
 |
|
|
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
|
|