Connecting Tech Pros Worldwide Help | Site Map

Buttons and Listboxes

 
LinkBack Thread Tools Search this Thread
  #1  
Old November 13th, 2005, 07:17 AM
DS
Guest
 
Posts: n/a
Default Buttons and Listboxes

I need to set up a number of buttons each having a different value to
them. I want to click on any given button and that in turn would
requery a listbox on a form according to that buttons value. How could
this be done.
Thanks
DS

  #2  
Old November 13th, 2005, 07:17 AM
mik18@pitt.edu
Guest
 
Posts: n/a
Default Re: Buttons and Listboxes

You can cast a value on the end of the button name and use that as the
parameter value for the requery. Let's say you have btn1 and btn2. When
btn1 is clicked you use the parameter value Right(btn1.Name,1) to a
function or sub routine. That way each button calls the same function
just passing a different parameter.

good luck.
mike

  #3  
Old November 13th, 2005, 07:17 AM
DS
Guest
 
Posts: n/a
Default Re: Buttons and Listboxes

mik18@pitt.edu wrote:[color=blue]
> You can cast a value on the end of the button name and use that as the
> parameter value for the requery. Let's say you have btn1 and btn2. When
> btn1 is clicked you use the parameter value Right(btn1.Name,1) to a
> function or sub routine. That way each button calls the same function
> just passing a different parameter.
>
> good luck.
> mike
>[/color]
Thanks I'll give it a try.
DS
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

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 220,840 network members.