Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Software > Access Forms > Filter a list b...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 44614 of 46530
Post > Topic >>

Filter a list box by field on a form

by =?Utf-8?B?SmVlZmdlb3JnZQ==?= <Jeefgeorge@[EMAIL PROTECTED] Aug 5, 2008 at 09:17 AM

I have a [Manager Bid Tab Data Subform] subform with fields: [Proj No],
[Std 
No], and others.  The [Proj No] is filled by a field in the master form. 
The 
[Std No] is filled by selecting a value from [StdNoList] list box. The
list 
box shows the std no for all proj no, I would like it to show the std no
for 
the Proj No selected on the form.  


After Update Event Procedure for [Proj No] text box on the subform:
     Private Sub Proj_No_AfterUpdate()
          Me!StdNoList.Requery
     End Sub


Row Source for [StdNoList] List Box:
     SELECT [Line Item Quantities].[Std No], [Engineering Estimating 
Guide].Description, [Engineering Estimating Guide].Unit
     FROM [Line Item Quantities] INNER JOIN [Engineering Estimating Guide]

ON [Line Item Quantities].[Std No] = [Engineering Estimating Guide].[Std
No]
     GROUP BY [Line Item Quantities].[Std No], [Engineering Estimating 
Guide].Description, [Engineering Estimating Guide].Unit, [Line Item 
Quantities].[Proj No]
     HAVING ((([Line Item Quantities].[Proj No])=[Forms]![Manager Bid Tab 
Data Subform]![Proj No]))
     ORDER BY [Line Item Quantities].[Std No];


Every time the form is run, the user is asked to input the
“[Forms]![Manager 
Bid Tab Data Subform]![Proj No]” parameter.
 




 2 Posts in Topic:
Filter a list box by field on a form
=?Utf-8?B?SmVlZmdlb3JnZQ=  2008-08-05 09:17:02 
RE: Filter a list box by field on a form
=?Utf-8?B?SmVlZmdlb3JnZQ=  2008-08-05 10:45:01 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Dec 3 18:40:33 CST 2008.