Microsoft Access Forums

Go Back   Microsoft Access Forums > Access Forums > Forms

Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 08-17-2008, 10:19 AM
Novice
 
Join Date: Aug 2008
Posts: 3
MUKUDU99 is on a distinguished road
Default Filtering subform combo from main form combo

Hi Everyone
There is something i am missing here.
I have a sub form on a main form.
I have set the combo on the main to filter the combo on the sub form and its working all right.

code:
Private Sub cboProgram_AfterUpdate()
Dim strSql As String
strSql = "SELECT lk_Indicator.IndicatorID, lk_Indicator.Indicator, lk_Indicator.ProgramAreaID" & _
" FROM lk_Indicator WHERE lk_Indicator.ProgramAreaID = " & Me.cboProgram.Column(0) & _
" ORDER BY lk_Indicator.IndicatorID ASC"
Me.subfrmZNANDATA.Form.cboIndicator.RowSource = strSql
End Sub
The problem comes in when i change the entry on the main form combo.
The other records do not show on the main form.
I have attached the images to illustrate
Note:
main form has cboIndicator--unbound
subform has cboIndicator---bound to lk_Indicator table

the main form and subform are linked

what i want is all the records entered on the subform to show

Thanks for your time....
Attached Images
File Type: gif img1.gif (21.8 KB, 8 views)
File Type: gif img2.gif (21.3 KB, 5 views)
Reply With Quote
Reply

Bookmarks

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Form Combo problems Honeytree Forms 0 10-05-2008 11:32 AM
cascading combo form tonysomerset Forms 0 08-27-2008 12:10 AM
Problems with list or combo box on tabbed form kydbmaster Forms 0 02-19-2008 10:33 PM
Using combo box to open another form ladyairj23 Forms 0 06-02-2006 05:03 AM
Subform vs main form calculation fadone Forms 17 12-21-2005 04:27 AM


All times are GMT -8. The time now is 03:01 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.