Hi,
I have written a small databse to handle samples.
I want to be able to report on the data in there by several different criteria.
I would like a date range taken from 2 textboxes on a form and several values picked from comboboxes.
If a combobox is left blank then all values from that are to be used.
I have tried 2 methods.
The first being in VB which comes fromthe microsoft pages where it has a set filter button and the code builds a string by naming each 1 Filter1 filter2 and so on and the next loop takes the value of each one and builds the SQL string. When ever i use this method i get a parameter box appear and then a blank report regardless of what i enter.
The second method is to tie the control source of the report in the query builder to the control. THis works for single entries. I have added like... & "*" to that statement to capture when the box is left blank and this too works fine. When there is a second option selected it returns nothing.
I need to have a total of around 9 different options to select and a date range and am now at the point where i may start to tear my hair out.
Can anyone help please?
Regards,
Alan
I have written a small databse to handle samples.
I want to be able to report on the data in there by several different criteria.
I would like a date range taken from 2 textboxes on a form and several values picked from comboboxes.
If a combobox is left blank then all values from that are to be used.
I have tried 2 methods.
The first being in VB which comes fromthe microsoft pages where it has a set filter button and the code builds a string by naming each 1 Filter1 filter2 and so on and the next loop takes the value of each one and builds the SQL string. When ever i use this method i get a parameter box appear and then a blank report regardless of what i enter.
The second method is to tie the control source of the report in the query builder to the control. THis works for single entries. I have added like... & "*" to that statement to capture when the box is left blank and this too works fine. When there is a second option selected it returns nothing.
I need to have a total of around 9 different options to select and a date range and am now at the point where i may start to tear my hair out.
Can anyone help please?
Regards,
Alan