Filter query with these filters

Crocdundee

Board Regular
Joined
May 10, 2010
Messages
174
Office Version
  1. 2013
Platform
  1. Windows
Using Access 2007

There are the columns needed but I do not know how to put the code below in a SQL code
Select these Columns or fields as they are called

Select Track,Rcno,Horse,Tabno,Nr,APrice
where Rcdate = [Forms]![Form2]![Combo0]
and Trckid is distinct
and Aprice is Min Value

Data for Rcdate is not required Visible
Data for Trckid is not required visible
But must be used for the filter
So what I am saying to the query is I wish to see all records in APrice where Rcdate = [Forms]![Form2]![Combo0]
and Trckid is distinct
with the columns from the first line

Hope someone can please help me
Graham
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Hi Graham, build the query like this:

Add all the fields to the grid in the order that you want to see them.
In the Criteria row for RcDate, put [Forms]![Form2]![Combo0]
You don't need TrckID because the Track name should be equivalent.
Now, still in Design view, click the big Sigma item to make this a Totals query. You will see a new Totals row, with Group By as the default value.
Change Aprice to Min, and run the query.

Denis
 
Upvote 0

Forum statistics

Threads
1,221,832
Messages
6,162,255
Members
451,757
Latest member
iours

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top