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  

Using a list box to populate a subform



 
 
Thread Tools Display Modes
  #1  
Old April 29th, 2008, 06:15 PM posted to microsoft.public.access.forms
Jerry Anderson[_2_]
external usenet poster
 
Posts: 16
Default Using a list box to populate a subform

In Access 2003, I have a form with no control source; only a listbox
populated from a query. I also have a subform that I want populated from a
value in the listbox. Since there is no control source for the form, the
wizard that establishes the relationship between the two forms shows empty
for the main form. I tried establishing the relationship with a text box that
gets its value from the list box on the main. However, when I go into form
view, there is nothing in the subform.
Any ideas?
  #2  
Old April 30th, 2008, 12:21 AM posted to microsoft.public.access.forms
John W. Vinson
external usenet poster
 
Posts: 18,261
Default Using a list box to populate a subform

On Tue, 29 Apr 2008 10:15:00 -0700, Jerry Anderson
wrote:

In Access 2003, I have a form with no control source; only a listbox
populated from a query. I also have a subform that I want populated from a
value in the listbox. Since there is no control source for the form, the
wizard that establishes the relationship between the two forms shows empty
for the main form. I tried establishing the relationship with a text box that
gets its value from the list box on the main. However, when I go into form
view, there is nothing in the subform.
Any ideas?


What is the Recordsource of the subform? You may be able to make it work by
typing the name of the listbox into the Master Link Field property of the
subform; that's not an option that the wizard will offer you, but it does
work.
--

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 12:25 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.