Quantcast
Channel: Value Lists Latest Topics
Viewing all articles
Browse latest Browse all 149

Auto-enter next value in value list for new record?

$
0
0

I am just working on an appointment reminder system and I would like to create a set of records each day for the next day's appointments. In general, appointments are half hourly and mostly only one for each timeslot.

I'd like each new record to auto-enter the appointment time 1 slot (30mins) later than the time slot in the previous record.

At the moment the timeslots are in a value list from 8.00AM to 5.00PM in 30min intervals. Once I've created the record for the 10.30AM slot I'd like the next record to auto-enter as 11.00AM etc. My current method is to do it by calculation from the time data in the timeslot field from the previous record by using the value of the n-1th record (where n is the total number of records) and adding 30 mins but this feels more complicated than perhaps it might need to be.

If ( Get ( RecordNumber ) =1; "8:00 AM" ;GetAsTime (GetNthRecord ( Time ; Get ( RecordNumber ) -1 )) + GetAsTime ("00:30:00"))

Is it simpler (or possible) just to select from the values in a value list?

Thanks.


Viewing all articles
Browse latest Browse all 149

Trending Articles