I've searched the forum for this and although I've found similiar requests and responses, cannot find one to exactly match what I would like.
I have a table tblTimetable that has an autonumber field along with a code (MATGC-?????).
What I would like is a new field that increments based on the first five characters of the below code field. So for example,
Autonumber Code MyIncrementNumber
1 MATGC-PPPPP 1
2 ILKS2-PPPPP 1
3 MATGC-SSSSS 2
4 MATGC-TTTTT 3
5 ILKS2-EEEEE 2
MyIncrementNumber increments +1 based on the first five characters of the course code.
Ideally I would like this be generated at run time i.e. when the user types data into the table. But I will settle for a query to update the whole table on a regular basis.
Does anyone know if this can be done.
Many Thanks
Dawn
I have a table tblTimetable that has an autonumber field along with a code (MATGC-?????).
What I would like is a new field that increments based on the first five characters of the below code field. So for example,
Autonumber Code MyIncrementNumber
1 MATGC-PPPPP 1
2 ILKS2-PPPPP 1
3 MATGC-SSSSS 2
4 MATGC-TTTTT 3
5 ILKS2-EEEEE 2
MyIncrementNumber increments +1 based on the first five characters of the course code.
Ideally I would like this be generated at run time i.e. when the user types data into the table. But I will settle for a query to update the whole table on a regular basis.
Does anyone know if this can be done.
Many Thanks
Dawn