Hi! I want to know what module / vba code should I do to achieve this effect:
I'm making a train reservation database. For this problem, I have three fields: slot_number which is supposed to be an autonumber, schedule_date which houses the date which the users can choose, and then schedule_time which should be a drop-down menu and the user can choose between A and B.
These three is a bit related, like... what I want to happen is if the user chooses a date or puts a date in schedule_date and then chooses time (A or B) in schedule_time, so let's say user chooses A, then click a command button "verify", the database will allow the entry / entries to the other fields if slot_number hasn't reached a certain number (example, 100) for that schedule_time (A) and date. If the database finds that slot_number has reached a certain number it will not allow putting entries to other fields and then a message box will appear saying "Limit reached. Choose another time or date).
I'm new and I've been trying to look for solutions but I can't come up with the right one. Please help me and thank you!
I'm making a train reservation database. For this problem, I have three fields: slot_number which is supposed to be an autonumber, schedule_date which houses the date which the users can choose, and then schedule_time which should be a drop-down menu and the user can choose between A and B.
These three is a bit related, like... what I want to happen is if the user chooses a date or puts a date in schedule_date and then chooses time (A or B) in schedule_time, so let's say user chooses A, then click a command button "verify", the database will allow the entry / entries to the other fields if slot_number hasn't reached a certain number (example, 100) for that schedule_time (A) and date. If the database finds that slot_number has reached a certain number it will not allow putting entries to other fields and then a message box will appear saying "Limit reached. Choose another time or date).
I'm new and I've been trying to look for solutions but I can't come up with the right one. Please help me and thank you!