Hi,
I have a form that contains a combobox and a subform. That subform is filled in function of the selection you make in the combobox. I want to add a button so i can print the values that are in the subform. So i need to use a query with a "WHERE" statement. I tried that but it doesn't work.
me.recordsource = select * from blabla WHERE harhar LIKE '" & combo0.text & "'"
DoCmd.OpenReport stDocName, acPreview, me.recordsource
lo luck with this code
I have a form that contains a combobox and a subform. That subform is filled in function of the selection you make in the combobox. I want to add a button so i can print the values that are in the subform. So i need to use a query with a "WHERE" statement. I tried that but it doesn't work.
me.recordsource = select * from blabla WHERE harhar LIKE '" & combo0.text & "'"
DoCmd.OpenReport stDocName, acPreview, me.recordsource
lo luck with this code