Im creating an application for a video rental store and i want to make it so that when you double click on a movie in the list box it queries the db and then fills in another text box called txtMovieName with the name of the movie. There will be other text boxes as well but if i can get the one to work i figure i can get the rest myself. I am doin the form in access. Currently I have code like this
Private Sub lboMovies_DoubleClick()
MsgBox ("HELLO"
Me.txtMovieName.RowSource = "SELECT MovieTitle from Movies_Table WHERE MovieID =" & Me.lboMovies
End Sub
The MsgBox was to test to see if the function was even getting called which it apparently wasnt.
Any ideas would be greatly appreciated. Thanks
Private Sub lboMovies_DoubleClick()
MsgBox ("HELLO"
Me.txtMovieName.RowSource = "SELECT MovieTitle from Movies_Table WHERE MovieID =" & Me.lboMovies
End Sub
The MsgBox was to test to see if the function was even getting called which it apparently wasnt.
Any ideas would be greatly appreciated. Thanks