Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help With Sorting Records

Status
Not open for further replies.

gator9

Technical User
May 17, 2002
162
US
Hi everyone, I have a records access field that tells me the date a record was last worked. I have it currently setup so that when I click a button it filters the records that are thirty days from the date last worked and shows those records. I would like to be able to filter the records like I have them but I wont to have it sort the records by the largest amount and by the date last worked. After it does that I want it to only show 25 records for that date, then residual the rest buy one day. My gold is to make sure I only have 25 records a day to work at the most and have the rest reschedule but always sort by date and largest account so that the oldest, and most money accounts get worked first.

Private Sub DailyTask_Click()
Me.Filter = "(((Projects.RecordAccessed)<Date()-30)) And (((Projects.SuitArchive)=No)) And (((Projects.FiledSuit)=No)) And (((Projects.UnableToCollect)=No)) And (((Projects.AddFee)=No)) And (((Projects.Chapter13)=No)) And (((Projects.Chapter11)=No)) And (((Projects.ReturnedMail)=No)) And (((Projects.SCMoreInfo)=No))"
Me.FilterOn = True
End Sub


Sincerely,

Charles
 
Private Sub DailyTask_Click()
Me.Filter = "(((Projects.RecordAccessed)<Date()-30))"
Me.FilterOn = True
End Sub

Here is a better cod to work with

Sincerely,

Charles
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top