I'm creating a booking system for course and I'm using the following code to reduce the places available by 1 when someone else is booked on a course:
SearchID = intCourseDetails
DoCmd.OpenForm "frmCourseDetails"
DoCmd.GoToControl "intCourseDetails"
DoCmd.FindRecord SearchID
intOccupancy = intOccupancy - 1
I've probably made a really simple mistake but it simply won't take 1 from intOccupancy. Anyone know what I'm doing wrong or a better way of doing this?
SearchID = intCourseDetails
DoCmd.OpenForm "frmCourseDetails"
DoCmd.GoToControl "intCourseDetails"
DoCmd.FindRecord SearchID
intOccupancy = intOccupancy - 1
I've probably made a really simple mistake but it simply won't take 1 from intOccupancy. Anyone know what I'm doing wrong or a better way of doing this?