D
Dr Poot
Hello, I would appreciate any help on trying to do this. To keep it simple,
the problem involves 2 tables, tblCompany and tblJob [one to many,
respectively]. tblCompany has a 3 letter code as a field. tblJob has a
field (named Job_number) which I want to take the value of this 3 letter code
concatenated with a counter (min 1, max 999) that increments by 1 for every
record in Job under each Company record (I don't think autonumber would be an
appropriate function to use here, perhaps Dmax?). So in the end, Job_number
has values like {XXX/001, XXX/002, XXX/003, YYY,001}. I can do this easily
in C++, although I just don't know VB and access well enough. To generate
this counter, I'm also thinking about introducing a count field which returns
the number of existing Job_numbers + 1, not sure which way to go though.
Much appreciated,
- Matt
the problem involves 2 tables, tblCompany and tblJob [one to many,
respectively]. tblCompany has a 3 letter code as a field. tblJob has a
field (named Job_number) which I want to take the value of this 3 letter code
concatenated with a counter (min 1, max 999) that increments by 1 for every
record in Job under each Company record (I don't think autonumber would be an
appropriate function to use here, perhaps Dmax?). So in the end, Job_number
has values like {XXX/001, XXX/002, XXX/003, YYY,001}. I can do this easily
in C++, although I just don't know VB and access well enough. To generate
this counter, I'm also thinking about introducing a count field which returns
the number of existing Job_numbers + 1, not sure which way to go though.
Much appreciated,
- Matt