Jengminchen
New member
- Local time
- Today, 20:34
- Joined
- Oct 11, 2002
- Messages
- 8
Hi Everyone,
I have a customer forms with a subform containing details of videos being hired. Each time the user click on the video combo box and select a movie, I want it to run a query in the background to see if the video has been previously hired by this customer and if so to pop up a message box with the date it was rented, else continue. I try to do it using a macro but it look clumsy and also always prompt me for the criteria. I have try creating the query and then capture the raw sql code and paste it into the VBA module without success. I am only new to VBA and any help would be much appreciated as I am going nuts!
I have a customer forms with a subform containing details of videos being hired. Each time the user click on the video combo box and select a movie, I want it to run a query in the background to see if the video has been previously hired by this customer and if so to pop up a message box with the date it was rented, else continue. I try to do it using a macro but it look clumsy and also always prompt me for the criteria. I have try creating the query and then capture the raw sql code and paste it into the VBA module without success. I am only new to VBA and any help would be much appreciated as I am going nuts!