Hey guys!
I've got a problem which I can't seem to figure out the code for. I have the logical process, but I just don't know how to put it into code.
I have a form with two boxes HireMovieID and HireCustomerID, with a button HireButton.
The two tables which I have are CustomerInfo and MovieList.
Here's the psuedocode for what I need to happen:
Oh yea and I need to somehow make it so that the MovieID is valid, as in, if it doesn't exist then it comes up with an Error MsgBox
I've tried a few basic ways but I can't really seem to figure out how to do it! :banghead:
If you could help that'd be great! I'm sure it's probably all easy to you guys, so if you would be so kind as to explain what you're doing/why you're doing it so that I could learn, that'd be great!
I've got a problem which I can't seem to figure out the code for. I have the logical process, but I just don't know how to put it into code.
I have a form with two boxes HireMovieID and HireCustomerID, with a button HireButton.
The two tables which I have are CustomerInfo and MovieList.
Here's the psuedocode for what I need to happen:
Code:
IF HireMovieID.Genre = "R16"
(IF DOB > Today - 16 years)
Display Error: "Too young"
ELSE Hire()
ELSE IF HireMovieID.Genre = "R18"
(IF DOB > Today - 18 years)
Display Error: "Too young"
ELSE Hire()
ELSE Hire()
Hire() = Add MovieID to a column 'Customer Hire History' for that CustomerID
SET MovieID's LastHireDate to Today
SET CustomerID's LastHireDate to Today
SET MovieID's status to the CustomerID
Add 1 to CheckNum for that HireMovieID
I've tried a few basic ways but I can't really seem to figure out how to do it! :banghead:
If you could help that'd be great! I'm sure it's probably all easy to you guys, so if you would be so kind as to explain what you're doing/why you're doing it so that I could learn, that'd be great!

Last edited: