Grabbing the last row of a db table and then increment it.
Posted on 2014-10-27
I have one Table called Draft which has several fields that user will select like PlayerID ,DraftTeam and Ncca Team then I have 4 remaining textboxes and here is where I don't know where to start I have a sub that gets current year 2014 but when user goes to use this it will be 2015 so I made that field available for testing now I have 3 textboxes left one is round, one is Draft position and last is overall position at the round only increases in NFL after 32 draft positions have been reached 30 for NBA and 30 for nhl overall just increments until the end so after round 1 has been complete then round becomes 2 and Draft position goes back to 1 and based on sport increments to either 32 NFL 30 NBA AND 30 NHL. THE Issue is if any of these 3 sports adds a new team to their league. That will screw up flow cause if I hardcode 32,or 30. oh overall position is just a count which increments.