stevegee76
New member
- Local time
- Today, 15:32
- Joined
- Apr 13, 2011
- Messages
- 5
Hi.
I'm not sure what I'm about to describe can actually be done(easily) but here goes anyway.
I have a db which has a form - frmMainForm - bound to a table - SWDataT. In this table are what I refer to as the static values for the condition of roads in an area. Each road has a static value score - StaticScore - and a ranking for each road has been assigned based on the static value score, highest being rank 1, lowest rank 215 out of 215 roads - SWRankingScore.
The db user selects a particular road from the list and DLookups fill in text fields on the form from the static values for that particular road.
The user then clicks a button which takes them to a new form - frmDynamicScore - to calculate the dynamic values for the road. This new form is bound to another table - ScoreT. The button has some code which opens the frmDynamicScore Form and populates the roads ID number - VNumber, road name and static score currently displayed on the Main form into fields in the ScoreT table and checks to see if there is already a record for this road in the ScoreT table based on road ID number and if not it makes a new record for this Id Number.
The dynamic values are then calculated and the static value is multiplied by reduction factors for various dynamic scoring factors to make a new score called the Dynamic Score. This is populated into a field called DynamicScore in the ScoreT table.
What I now need to do is to recaluate this roads rank in relation to the other roads in this area based on the new dynamic score. However, not all roads will have been given a dynamic score yet, so i need to rerank by looking first at the dynamic scores where they exist for a road and if not the original static score. I would also like to display this new ranking score on the frmDynamicScore Form if possible.
Does anyone have any suggestions about how this reranking can be done?
I have looked up help on this for the last day or so but I can't find any help for this specific issue.
Any help is greatly appreciated.
Thanks Steve
I'm not sure what I'm about to describe can actually be done(easily) but here goes anyway.
I have a db which has a form - frmMainForm - bound to a table - SWDataT. In this table are what I refer to as the static values for the condition of roads in an area. Each road has a static value score - StaticScore - and a ranking for each road has been assigned based on the static value score, highest being rank 1, lowest rank 215 out of 215 roads - SWRankingScore.
The db user selects a particular road from the list and DLookups fill in text fields on the form from the static values for that particular road.
The user then clicks a button which takes them to a new form - frmDynamicScore - to calculate the dynamic values for the road. This new form is bound to another table - ScoreT. The button has some code which opens the frmDynamicScore Form and populates the roads ID number - VNumber, road name and static score currently displayed on the Main form into fields in the ScoreT table and checks to see if there is already a record for this road in the ScoreT table based on road ID number and if not it makes a new record for this Id Number.
The dynamic values are then calculated and the static value is multiplied by reduction factors for various dynamic scoring factors to make a new score called the Dynamic Score. This is populated into a field called DynamicScore in the ScoreT table.
What I now need to do is to recaluate this roads rank in relation to the other roads in this area based on the new dynamic score. However, not all roads will have been given a dynamic score yet, so i need to rerank by looking first at the dynamic scores where they exist for a road and if not the original static score. I would also like to display this new ranking score on the frmDynamicScore Form if possible.
Does anyone have any suggestions about how this reranking can be done?
I have looked up help on this for the last day or so but I can't find any help for this specific issue.
Any help is greatly appreciated.
Thanks Steve