Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

dynamic filling reports

Status
Not open for further replies.

230173

MIS
Jun 22, 2001
208
SG
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top