Geoff Codd
Registered User.
- Local time
- Today, 01:43
- Joined
- Mar 6, 2002
- Messages
- 190
"One day I'll actuallywork out what all the different syntax are"
I have a Query which has three fields
Date - Date Format
Time - Date Format
Present_Reading - Number
I have added a fourth field Previous_Reading which is the following formula
Previous_Reading: DMax("[Reading]","Satchwell_Trend_Logs_(Temp)","[Date] <= #" & Format([Date],"mm/dd/yyyy") & "#")
This works fine, now I need to reduce the results so It looks for the record where the Time is less than Time.
Something like this
Previous_Reading: DMax("[Reading]","Satchwell_Trend_Logs_(Temp)","[Date] <= #" & Format([Date],"mm/dd/yyyy") & "#" And [Time]<[Time])
But I've played about with the syntax and can't seem to get it right.
Does anyone have any ideas
Thanks
Geoff
I have a Query which has three fields
Date - Date Format
Time - Date Format
Present_Reading - Number
I have added a fourth field Previous_Reading which is the following formula
Previous_Reading: DMax("[Reading]","Satchwell_Trend_Logs_(Temp)","[Date] <= #" & Format([Date],"mm/dd/yyyy") & "#")
This works fine, now I need to reduce the results so It looks for the record where the Time is less than Time.
Something like this
Previous_Reading: DMax("[Reading]","Satchwell_Trend_Logs_(Temp)","[Date] <= #" & Format([Date],"mm/dd/yyyy") & "#" And [Time]<[Time])
But I've played about with the syntax and can't seem to get it right.
Does anyone have any ideas
Thanks
Geoff