"John W. Vinson" wrote:
[Quoted Text] > On Thu, 25 Dec 2008 00:22:01 -0800, Mary <Mary[ at ]discussions.microsoft.com> > wrote: > > >Sorry for the double posting and thanks for our help. What do you mean by > >Put a criterion on Audit of [Enter Audit number:] ? > > > > if i enter the number on audit criterion it will only pull one result that > >is based on that number. I think you missed my questions. I want it to pull > >all of the records based on the number from table1, column Aduit. Your anser > >will only pull all the Audit will 4 if I enter that on the critierion field. > > I guess I didn't understand the question then. If you don't want to put a > criterion on Audit, simply leave off the criterion. If you Join the two > tables, you will be able to see all of the records for all audit values. > > What *SPECIFIC* problem are you having? If you're not getting the results you > want, please open your Query in SQL view and post the SQL text here; also post > a few representative records of the results you're getting (based on the > sample data you posted say) and indicate what it is that you're seeing that > you don't want, or aren't seeing that you do want. > -- > > John W. Vinson [MVP] > Thanks for your reply. I do not want to pull all result that is very easy to do. I want to pull the records based of table.audit. So if employee ID 234 has an audit of 2. I want to see 2 record from table2 . This records should be based of the top 2 amt. The result for this from the 2 tables above should ONLY be:
ID AMT AMTTYPE Transtype 234 5.30 visa credit 234 1.25 TC paytogo
and soon. Thanks gain
|