Connecting Tech Pros Worldwide Help | Site Map

Access Books

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

Are there any Access books out there that cover Listboxes extensively?
Most books I see only touch on the subject. I need deep coverage on
Linking and "Drill-Downs".
Thanks
DS

  #2  
Old November 13th, 2005, 07:17 AM
PC Datasheet
Guest
 
Posts: n/a
Default Re: Access Books

Here are the basics:

Base listbox2 on a query and include the field that listbox1 returns. In
that field, put the following in the criteria:
Forms!NameOfYourForm!NameOfListBox1

Put the following in the AfterUpdate event of listbox1:
Me!Listbox2.requery

You can extend this as far as you want. Remember, the next listbox's
criteria is based on the previous listbox and the previous listbox needs to
requery the next listbox.

--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
resource@pcdatasheet.com
www.pcdatasheet.com


"DS" <bootybox@optonline.net> wrote in message
news:ZAOOd.9410$Co6.4171@fe09.lga...[color=blue]
> Are there any Access books out there that cover Listboxes extensively?
> Most books I see only touch on the subject. I need deep coverage on
> Linking and "Drill-Downs".
> Thanks
> DS[/color]


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

PC Datasheet wrote:
[color=blue]
> Here are the basics:
>
> Base listbox2 on a query and include the field that listbox1 returns. In
> that field, put the following in the criteria:
> Forms!NameOfYourForm!NameOfListBox1
>
> Put the following in the AfterUpdate event of listbox1:
> Me!Listbox2.requery
>
> You can extend this as far as you want. Remember, the next listbox's
> criteria is based on the previous listbox and the previous listbox needs to
> requery the next listbox.
>
> --
> PC Datasheet
> Your Resource For Help With Access, Excel And Word Applications
> resource@pcdatasheet.com
> www.pcdatasheet.com
>
>
> "DS" <bootybox@optonline.net> wrote in message
> news:ZAOOd.9410$Co6.4171@fe09.lga...
>[color=green]
>>Are there any Access books out there that cover Listboxes extensively?
>>Most books I see only touch on the subject. I need deep coverage on
>>Linking and "Drill-Downs".
>>Thanks
>>DS[/color]
>
>
>[/color]
Thanks
DS
  #4  
Old November 13th, 2005, 07:18 AM
pietlinden@hotmail.com
Guest
 
Posts: n/a
Default Re: Access Books

normally you'd do this with comboboxes. Listboxes are a PITA to use to
gather criteria. But there's code for all this stuff at
mvps.org/access

here:
http://www.mvps.org/access/forms/frm0028.htm

and here:
http://www.mvps.org/access/forms/frm0007.htm

listboxes are a bit trickier because if you set the Multi-Select
property to True, you have to iterate through the collection of
selected items...

  #5  
Old November 13th, 2005, 07:31 AM
Larry Linson
Guest
 
Posts: n/a
Default Re: Access Books

"DS" wrote
[color=blue]
> Are there any Access books out
> there that cover Listboxes extensively?
> Most books I see only touch on the
> subject. I need deep coverage on
> Linking and "Drill-Downs".[/color]

There are many examples of using List Boxes and Combo Boxes in the Solutions
sample database from Microsoft, temporarily housed at
http://www.mvps.org/access/downloads/bapp2000.exe. It's not a book, but it
is very helpful, and it is free.

Refer to the "parent" ListBox in the RowSource of the "child" ListBox, and
Requery the "child" in the "AfterUpdate" event of the parent. I've done this
with three or four levels of Combo Boxes... you may need a few niceties,
such as clearing the lower level boxes when you reselect in the top parent
List or Combo Box.

Larry Linson
Microsoft Access MVP


 

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