I have a table of academic information
i have a search form comprised of textboxes, comboboxes where people select their options from what is available and the output is put into a listbox ( i think it looks nicer than a datasheet)
The boxes are are linked via the criteria section on the query.
For example put a name into the 'first name' box and then click 'search' produces the result in the listbox where all names matching that name are displayed.
That works.... but.
when I get onto the seventh or so textbox or combobox the search form stops working.
for several fields i can use the format:
Like IIf(IsNull(Forms!FormName![ControlName]), _
"*",[Forms]![FormName]![ControlName])
that is until i get to seventh field or so for example looking for a 'COURSE SUPERVISOR' that if the box is blank it displays nothing instead of displaying ALL records..I want to see all records if the boxes are blank. Empty box? then i want to see all data.
The difficulty is that unlike name, surname, date fields and coursename information the 'COURSE SUPERVISOR' is sometimes a field that isn't filled in all the time. So while all records have a name, not all records have a course supervisor.
Now I've tried to the limit of my knowledge and 'trial and error' skill I can't get the COURSE SUPERVISOR to display correctly without hiding fields when no input is it's box.
I've used as a guide but I can't seem to work out how to get it to work.
i can get what i want if i put course supervisor in a separate query on it's own and put code to it.But I can't seem to put it on the same query as the rest. I can't get it to work with fields that have data on every record without hiding information..
I will display the sql info if requested but do bear in mind that it is massive as there are seven or eight fields with lines of criteria written to them.
I hope someone can help me.. My extravagent work around is going to take weeks at my rate.
i have a search form comprised of textboxes, comboboxes where people select their options from what is available and the output is put into a listbox ( i think it looks nicer than a datasheet)
The boxes are are linked via the criteria section on the query.
For example put a name into the 'first name' box and then click 'search' produces the result in the listbox where all names matching that name are displayed.
That works.... but.
when I get onto the seventh or so textbox or combobox the search form stops working.
for several fields i can use the format:
Like IIf(IsNull(Forms!FormName![ControlName]), _
"*",[Forms]![FormName]![ControlName])
that is until i get to seventh field or so for example looking for a 'COURSE SUPERVISOR' that if the box is blank it displays nothing instead of displaying ALL records..I want to see all records if the boxes are blank. Empty box? then i want to see all data.
The difficulty is that unlike name, surname, date fields and coursename information the 'COURSE SUPERVISOR' is sometimes a field that isn't filled in all the time. So while all records have a name, not all records have a course supervisor.
Now I've tried to the limit of my knowledge and 'trial and error' skill I can't get the COURSE SUPERVISOR to display correctly without hiding fields when no input is it's box.
I've used as a guide but I can't seem to work out how to get it to work.
i can get what i want if i put course supervisor in a separate query on it's own and put code to it.But I can't seem to put it on the same query as the rest. I can't get it to work with fields that have data on every record without hiding information..
I will display the sql info if requested but do bear in mind that it is massive as there are seven or eight fields with lines of criteria written to them.
I hope someone can help me.. My extravagent work around is going to take weeks at my rate.