Connecting Tech Pros Worldwide Help | Site Map

Access Books

  #1  
Old November 13th, 2005, 08:17 AM
DS
Guest
 
Posts: n/a
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, 08:17 AM
PC Datasheet
Guest
 
Posts: n/a

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, 08:17 AM
DS
Guest
 
Posts: n/a

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, 08:18 AM
pietlinden@hotmail.com
Guest
 
Posts: n/a

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, 08:31 AM
Larry Linson
Guest
 
Posts: n/a

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


Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
MS Access Reports and VB.NET Program JoeW answers 16 August 22nd, 2006 11:05 PM
Access Books Patrick A answers 1 November 13th, 2005 01:48 PM
Access books ken answers 2 November 13th, 2005 01:33 PM
Computer Books, Inc MS Access Books - up to 80% off Price Cut Books Ltd UK answers 0 November 13th, 2005 12:23 AM