Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old January 21st, 2006, 03:15 PM
Simon
Guest
 
Posts: n/a
Default Record selection with combobox and record navigation buttons

Dear reader,



With a combobox I can go to a selected record picked in the pull down list.



And in the same time the record navigation field shows the selected record
number from the selection.



In case I go to another record by clicking the next record button the
combobox field will not by updated with the current record.



Is there any VBA code for updating the combobox field. This code is required
under the "On click" of the next record button but I do not know what to
specify.



Thanks for any help.

Kind regards,

Simon van Beek



  #2  
Old January 21st, 2006, 04:25 PM
Bob Quintal
Guest
 
Posts: n/a
Default Re: Record selection with combobox and record navigation buttons

"Simon" <S.v.Beek@HCCnet.nl> wrote in
news:43d24e6d$0$32762$e4fe514c@dreader25.news.xs4a ll.nl:
[color=blue]
> Dear reader,
> With a combobox I can go to a selected record picked in the
> pull down list.
> And in the same time the record navigation field shows the
> selected record number from the selection.
>
> In case I go to another record by clicking the next record
> button the combobox field will not by updated with the current
> record.
> Is there any VBA code for updating the combobox field. This
> code is required under the "On click" of the next record
> button but I do not know what to specify.[/color]

me.combobox.value = me!primaryKey (replace combobox with the
name of your box, and replace primaryKey with the name of the
field that is your combo box's displayed column.

It is better to put this in the .OnCurrent event of the form.
This will keep the combo box syncronized no matter what method
of navigation is used

--
Bob Quintal

PA is y I've altered my email address.
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles