M
manish
i have a field in a table which is of text type. It stores
values like
0401/01
0401/02
0401/03
..
..
0402/01
0402/02
The logic behind is that the first two indicate the year,
the second two indicate the month and the last two
indicate the no of Invoice raised in a particular month.
Now i want to have this particular field in my forms to be
automatically incremented each time i add a record. Not
only that but if the month changes then the monthnumber
should also change and cause the numbering to start from
the begining.
There is again a problem. We raise invoices not directly
allways. but sometimes an estimate is raised and if
approved the corresponding invoice is raised. This means
that either the invoices entry can be a new entry
(addition of a record - insert event) or it can be in an
existing record. I have already made an unbound form that
only has a text box that displays the last maximum number
raised. how can this be done. I am also not well versed in
VBA & codings etc. CAN this be DONE????
Also my form should update the table.
What are the possibilities??
regards
manish
values like
0401/01
0401/02
0401/03
..
..
0402/01
0402/02
The logic behind is that the first two indicate the year,
the second two indicate the month and the last two
indicate the no of Invoice raised in a particular month.
Now i want to have this particular field in my forms to be
automatically incremented each time i add a record. Not
only that but if the month changes then the monthnumber
should also change and cause the numbering to start from
the begining.
There is again a problem. We raise invoices not directly
allways. but sometimes an estimate is raised and if
approved the corresponding invoice is raised. This means
that either the invoices entry can be a new entry
(addition of a record - insert event) or it can be in an
existing record. I have already made an unbound form that
only has a text box that displays the last maximum number
raised. how can this be done. I am also not well versed in
VBA & codings etc. CAN this be DONE????
Also my form should update the table.
What are the possibilities??
regards
manish