I am new to VB and need help with the following:
I have a form that is used for two types of requests (either Task or Project). The user selects which type of request it is by a dropdown box. What I need help is is this: there is also another field called Number next to the Type field. I would like the numbers to be automatically assigned the next available number based on the Type. For example, if it is Task, it will look up the last Task Number and assign the next number or if it is a Project, it will look at the last Project Number and assign the next one.
If there were only one type, than I could just use the autonumber feature, but since there two different types, I don't even know where to start!
Any help would be GREATLY appreciated!
I have a form that is used for two types of requests (either Task or Project). The user selects which type of request it is by a dropdown box. What I need help is is this: there is also another field called Number next to the Type field. I would like the numbers to be automatically assigned the next available number based on the Type. For example, if it is Task, it will look up the last Task Number and assign the next number or if it is a Project, it will look at the last Project Number and assign the next one.
If there were only one type, than I could just use the autonumber feature, but since there two different types, I don't even know where to start!
Any help would be GREATLY appreciated!