Crocdundee
Board Regular
- Joined
- May 10, 2010
- Messages
- 174
- Office Version
- 2013
- Platform
- Windows
Can someone please help me here,Counting total records
I am trying to put a count in textbox5 on a form from this sql code.
SELECT SELECTIONS.Track, SELECTIONS.RNO, SELECTIONS.TAB, SELECTIONS.HORSE, SELECTIONS.Jockey, SELECTIONS.Odds, SELECTIONS.RATING, Ozeform.WNO, Ozeform.[_2ND], Ozeform.[_3RD], Ozeform.NSW_W, Ozeform.NSW_P, Ozeform.NSW2, Ozeform.NSW3
FROM SELECTIONS INNER JOIN Ozeform ON (SELECTIONS.Track = Ozeform.TRACK) AND (SELECTIONS.RNO = Ozeform.RNO)
WHERE (((SELECTIONS.TAB)=[wno]) AND ((Ozeform.RDATE)=[Forms]![Form1]![Combo25])) OR (((SELECTIONS.TAB)=[_2nd])) OR (((SELECTIONS.TAB)=[_3rd]))
ORDER BY SELECTIONS.RcTime;
Appreciate any help here
I am trying to put a count in textbox5 on a form from this sql code.
SELECT SELECTIONS.Track, SELECTIONS.RNO, SELECTIONS.TAB, SELECTIONS.HORSE, SELECTIONS.Jockey, SELECTIONS.Odds, SELECTIONS.RATING, Ozeform.WNO, Ozeform.[_2ND], Ozeform.[_3RD], Ozeform.NSW_W, Ozeform.NSW_P, Ozeform.NSW2, Ozeform.NSW3
FROM SELECTIONS INNER JOIN Ozeform ON (SELECTIONS.Track = Ozeform.TRACK) AND (SELECTIONS.RNO = Ozeform.RNO)
WHERE (((SELECTIONS.TAB)=[wno]) AND ((Ozeform.RDATE)=[Forms]![Form1]![Combo25])) OR (((SELECTIONS.TAB)=[_2nd])) OR (((SELECTIONS.TAB)=[_3rd]))
ORDER BY SELECTIONS.RcTime;
Appreciate any help here