A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

List box populate based on combo box



 
 
Thread Tools Display Modes
  #1  
Old March 31st, 2010, 01:19 AM posted to microsoft.public.access.forms
Warman
external usenet poster
 
Posts: 12
Default List box populate based on combo box

I have a combo box that is based on a table. The three fields that are
selected should generate a listbox based on a query. The query filters the
the selection.

I can't get any info in the list box. The query works and the listbox
contains the column names but no records.

Am I not using the right fields for the query or not doing a refresh?? I am
lost - been at this for several hours - read all the posts - I know it should
be simple.

Thanks
  #2  
Old March 31st, 2010, 01:26 AM posted to microsoft.public.access.forms
PieterLinden via AccessMonster.com
external usenet poster
 
Posts: 307
Default List box populate based on combo box

Warman wrote:
I have a combo box that is based on a table. The three fields that are
selected should generate a listbox based on a query. The query filters the
the selection.

I can't get any info in the list box. The query works and the listbox
contains the column names but no records.

Am I not using the right fields for the query or not doing a refresh?? I am
lost - been at this for several hours - read all the posts - I know it should
be simple.

Thanks


Post your code. If all you're doing is trying to filter the contents of the
listbox at runtime, then you should be able to use this:
http://www.mvps.org/access/forms/frm0028.htm

--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...forms/201003/1

  #3  
Old March 31st, 2010, 03:05 AM posted to microsoft.public.access.forms
John W. Vinson
external usenet poster
 
Posts: 18,261
Default List box populate based on combo box

On Tue, 30 Mar 2010 17:19:01 -0700, Warman
wrote:

I have a combo box that is based on a table. The three fields that are
selected should generate a listbox based on a query. The query filters the
the selection.

I can't get any info in the list box. The query works and the listbox
contains the column names but no records.

Am I not using the right fields for the query or not doing a refresh?? I am
lost - been at this for several hours - read all the posts - I know it should
be simple.

Thanks


A combo box will not "generate" a listbox. Your question is unclear; what is
the SQL view of the query? What are the RowSources of the combo and the
listbox? How are you selecting "three fields" from a combo (since a combo can
have only one value)? Do you have any VBA code or macros (e.g. requerying the
listbox in the combo's afterupdate event)?
--

John W. Vinson [MVP]
 




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 Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 11:48 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.