Hello all!
As usual, the powers-that-be think that I can produce a rabbit out of my hat in less than a week. Here is my problem (sorry it's wordy, but it's necessary):
I have a database that tracks projects that come in from different school districts throughout the state, each with their own District Code ("DistCode"
and each school has their own Code ("SchoolNo"
. I'd developed a wonderful autonumbering system (so I thought, at least it was easier to code!), that concatenated the District Code, School Code, Fiscal Year and tagged a unique identifier at the end. Now the higher ups want to change hwo the number is generated. For each (would that be a clue as to how to proceed?) School in a particular District, they would like to start the first parent project of the year with "1000" (e.g., 1234-050-04-1000). For each subsequent project for THAT SCHOOL, the last four digits would be "2000', then "3000", etc. The kicker is that under each parent project, there could be other sub-projects, designated by specific numbers, i.e., "100" = Temporary Facilities, "200"= Land acquisitions, etc. My problem is how to enter this data and have the last four digits look at the previous projects for that district & school and give it the next number. I really seem to be stuck here, and the new Fiscal Year has already begun (well, as soon as the State leaders pass the budget, I guess). Can anyone give me a clue as to how to proceed? I can get the first record for each school, I'm stuck on how to go back and look at what's in the table to assign the next number. Thanks so much in advance!!
![[bugeyed] [bugeyed] [bugeyed]](/data/assets/smilies/bugeyed.gif)
JayeD
"I'm sure of two things: there IS a God, and I'm NOT Him!" - R. Williams
As usual, the powers-that-be think that I can produce a rabbit out of my hat in less than a week. Here is my problem (sorry it's wordy, but it's necessary):
I have a database that tracks projects that come in from different school districts throughout the state, each with their own District Code ("DistCode"
![[bugeyed] [bugeyed] [bugeyed]](/data/assets/smilies/bugeyed.gif)
JayeD
"I'm sure of two things: there IS a God, and I'm NOT Him!" - R. Williams