Auto update spaces left?

BP123

New member
Local time
Today, 12:44
Joined
Mar 2, 2013
Messages
4
Hi, sorry for being a pest but I was wondering how I can do this.

Say I had a database and there was 40 spaces for football and i booked a member in for football how would i make the number of spaces left change from 40 to 39?

Thanks
 
either have a field for the number of spaces left (or the number booked) and update the table with code like this

currentdb.execute "update sometable set spacesleft = spacesleft +1

but better still, don't store the number of spaces - just record the player - and then have a query to count the players whenever you need the total.
 

Users who are viewing this thread

Back
Top Bottom