GrunleStan
Registered User.
- Local time
- Tomorrow, 01:13
- Joined
- Aug 7, 2018
- Messages
- 22
So I have a table_payscale with
ID <- Primary Autonumber key
Staff_ID<- Foreign key to another table
PayScale <- important information
DatePayScale <- Date important information last changed.
Branch <- branch person is in.
What I require is to filter out all the old information from the table and just cut it down to the last date of the person. I am currently using a query with a where statement that uses a dmax lookup in it.
SQL statements is like
And it is slow... less than 500 records takes a good 5 minutes.
So the quick and difficult question... Is there an easier & faster way to filter the data ?
TIA
ID <- Primary Autonumber key
Staff_ID<- Foreign key to another table
PayScale <- important information
DatePayScale <- Date important information last changed.
Branch <- branch person is in.
What I require is to filter out all the old information from the table and just cut it down to the last date of the person. I am currently using a query with a where statement that uses a dmax lookup in it.
SQL statements is like
Code:
SELECT tbl_PayScale.*
FROM tbl_PayScale
WHERE (((tbl_PayScale.PS_DateAssign)=DMax("PS_DateAssign","tbl_PayScale","PS_Staff_ID=" & "'" & [PS_Staff_ID] & "'")));
So the quick and difficult question... Is there an easier & faster way to filter the data ?
TIA
Last edited: