![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I am looking up the first record in a list that is sorted by date, but it doesn't always return the next record in the list. Here is the code: Dim NextHearing As String Dim NextDate As Variant NextDate = DFirst("[Defendant] & ', on ' & [HearingDate] & ' at ' & [HearingTime]", "qryHearings") MsgBox "Your next hearing is for " & NextDate Please tell me how to modify this so it always shows the next record in the database sorted by date. Thanks John King john (AT) sawtoothrecovery (DOT) com |
![]() |
| Thread Tools | |
| Display Modes | |
| |