C
cathywoodford
Hi. I am creating a very simple db. It has a movie table, customer
table and rental table. I have a search form created with a combo box
of movie titles. I want the user to select a movie title and it will
bring up a form that tells them who the movie is rented too if it's
rented. I have the form opening but not to the user selection. Here
is the code I have:
Private Sub cmbSearch_AfterUpdate()
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "frmMovies"
stLinkCriteria = Me!cmbSearch.Value
DoCmd.OpenForm stDocName, , , stLinkCriteria, acFormReadOnly
DoCmd.Maximize
End Sub
Hope someone can help.
table and rental table. I have a search form created with a combo box
of movie titles. I want the user to select a movie title and it will
bring up a form that tells them who the movie is rented too if it's
rented. I have the form opening but not to the user selection. Here
is the code I have:
Private Sub cmbSearch_AfterUpdate()
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "frmMovies"
stLinkCriteria = Me!cmbSearch.Value
DoCmd.OpenForm stDocName, , , stLinkCriteria, acFormReadOnly
DoCmd.Maximize
End Sub
Hope someone can help.