J
jtbleek
"Microsoft Office Access can't find the field 'cboMovieLookup' referred to in
you expression."
I have a subform that I am attempting to add a combo box that lists the
movie ID and when the user clicks on the movie ID it will fill in info like
the Movie Title in a text box. I've doen this on the main form using similar
code and it worked fine, but it is not working now and getting the Run tim
error 2465. I have a feeling it has to do with naming conventions but not
sure.
Private Sub cboMovieLookup_AfterUpdate()
Me.VideoTitle = DLookup("[VideoTitle]", "tblVideos",
"[VideoID]=[Forms]![Rent Movie].[cboMovieLookup]")
End Sub
So the way I understand this code is in that it looks up the Video Title
from the form Rent Movie where VideoID matches the selection made in the
cboMovieLookup combo box.
Any help would be appreciated.
you expression."
I have a subform that I am attempting to add a combo box that lists the
movie ID and when the user clicks on the movie ID it will fill in info like
the Movie Title in a text box. I've doen this on the main form using similar
code and it worked fine, but it is not working now and getting the Run tim
error 2465. I have a feeling it has to do with naming conventions but not
sure.
Private Sub cboMovieLookup_AfterUpdate()
Me.VideoTitle = DLookup("[VideoTitle]", "tblVideos",
"[VideoID]=[Forms]![Rent Movie].[cboMovieLookup]")
End Sub
So the way I understand this code is in that it looks up the Video Title
from the form Rent Movie where VideoID matches the selection made in the
cboMovieLookup combo box.
Any help would be appreciated.