C
cathywoodford
Hi. I have a simple database that has 3 tables - customer, rental and
movies. The fields are:
Customer Table Rental Table Movie
Table
CustomerID CustomerID MovieID
FirstName Rented (y/n checkbox) MovieTitle
LastName RentalID
MovieID
The relationships are obvious - cust id (customer table) to cust id
(rental table) and movie id (movie table) to movie id (rental table).
I have a search form with a combo box that displays the list of movies
from the movie table. When the user selects a movie, a movie form
opens displaying movie information, the rented checkbox (on a rental
subform) and customer information (on a customer subform).
I have a RENT command button on this form so that if the movie is not
rented, the user can click RENT and a form opens up. I'm having
trouble setting up this form. I know the form needs to be be in Add
mode and I would like the movie information to be carried over and have
the user just fill in the customer information and tick off the rented
check box. I don't know what to base my form on (ie: what table). I
have it carrying over the information and just being able to check the
box and add customer information but then it adds a second movie title
as well. When I put the movie information in a subform, it doesn't get
carried over.
Any ideas?
Cathy
movies. The fields are:
Customer Table Rental Table Movie
Table
CustomerID CustomerID MovieID
FirstName Rented (y/n checkbox) MovieTitle
LastName RentalID
MovieID
The relationships are obvious - cust id (customer table) to cust id
(rental table) and movie id (movie table) to movie id (rental table).
I have a search form with a combo box that displays the list of movies
from the movie table. When the user selects a movie, a movie form
opens displaying movie information, the rented checkbox (on a rental
subform) and customer information (on a customer subform).
I have a RENT command button on this form so that if the movie is not
rented, the user can click RENT and a form opens up. I'm having
trouble setting up this form. I know the form needs to be be in Add
mode and I would like the movie information to be carried over and have
the user just fill in the customer information and tick off the rented
check box. I don't know what to base my form on (ie: what table). I
have it carrying over the information and just being able to check the
box and add customer information but then it adds a second movie title
as well. When I put the movie information in a subform, it doesn't get
carried over.
Any ideas?
Cathy