dbTalk Databases Forums  

Set a listbox to a specific row

comp.databases.ms-access comp.databases.ms-access


Discuss Set a listbox to a specific row in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Vmusic
 
Posts: n/a

Default Set a listbox to a specific row - 03-24-2009 , 04:20 PM






Hi,
I have a form whose record source is set to a specific table.

Next and Previous navigation buttons were added using the wizard.

I added a listbox whose row source is a query of the same table as
the form's record source. I created the listbox using the wizard and
checked the "Find a record on my form based on the value I select in
my list box".

What I want to do is complete the 'synchronization' of the list
box. If I click the next or previous button, I want to set the listbox
to go to the same record the form is on. I tried to follow code
examples, but unfortunately it didn't work and it wasn't easy.
My data in the table behind the form and listbox does have a 'ID'
that is a primary key. It shows for display purposes in the form (you
can't change it or set it). It's also the hidden column in the
listbox.

Does any know how to do this in this situation? Maybe there's a
tutorial.

I tried to look on MSN's site.... I abhor there help pages because
they're so confusing and don't match the scenario I have half the
time.

Again.. the challenge is to set the listbox to the same record the
form is on, when the user clicks the next or previous buttons.

Any help would be greatly appreciated!!
Thanks!!

Reply With Quote
  #2  
Old   
Salad
 
Posts: n/a

Default Re: Set a listbox to a specific row - 03-24-2009 , 07:50 PM






Vmusic wrote:

Quote:
Hi,
I have a form whose record source is set to a specific table.

Next and Previous navigation buttons were added using the wizard.

I added a listbox whose row source is a query of the same table as
the form's record source. I created the listbox using the wizard and
checked the "Find a record on my form based on the value I select in
my list box".

What I want to do is complete the 'synchronization' of the list
box. If I click the next or previous button, I want to set the listbox
to go to the same record the form is on. I tried to follow code
examples, but unfortunately it didn't work and it wasn't easy.
My data in the table behind the form and listbox does have a 'ID'
that is a primary key. It shows for display purposes in the form (you
can't change it or set it). It's also the hidden column in the
listbox.

Does any know how to do this in this situation? Maybe there's a
tutorial.

I tried to look on MSN's site.... I abhor there help pages because
they're so confusing and don't match the scenario I have half the
time.

Again.. the challenge is to set the listbox to the same record the
form is on, when the user clicks the next or previous buttons.

Any help would be greatly appreciated!!
Thanks!!
You might try google groups (advance search). Here's a link for a
similar problem thread.
http://groups.google.com/group/comp....27c2a24ed141b9




Reply With Quote
Reply




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.