Hello all
hopfully you can help me with somthing that i have been racking my brain with for days now
My table data (table called IACS TABLE) is displayed in a form called FrmCORE with in this form I need to be able to filter the data by multiple factors which are chosen from combo boxes called
PriorityCombo
CompletedCombo
NotifiedCombo
StatusCombo,
SiteCloseCombo
OwnerCombo
I can filter by each one individually no problems with an applyfilter macro with the Where condition as
[IACS TABLE][Priority] = Forms![FrmCORE]![PriorityCombo]
the priority bit is the column name with in IACS TABLE.
I can also filter by 2 factors or more like this
[IACS TABLE]![Priority] = Forms![FrmCORE]![PriorityCombo] AND [IACS TABLE]![Task Status] = Forms![FrmCORE]![StatusCombo] AND etc etc
but this wont work if I only need to filter by 1 factor as the string is looking for 2 or more factors.
There is a function called query by form (QBF) which I have been reading up on but I cant seem to get it to work
SELECT [IACS TABLE].*
FROM [IACS TABLE]
WHERE (((IACS TABLE.Priority)= Forms.FrmCORE.PriorityCombo),(IACS TABLE.Task Status)= Forms.FrmCORE.StatusCombo) etc
Or something like that anyway
I think you then apply this to a command button but I’ve been trying for over a day now and I’ve completely run out of ideas. Im probably using macros completely wrong here which is why it isn’t working!!
I have also been messing with macros doing variants of the following;
Like IF(IsNull([Forms]![FrmCORE]![PriorityCombo]),"TRUE",[IACS TABLE]![Priority]=[Forms]![FrmCORE]![PriorityCombo]) AND Like IF (IsNull([Forms]![FrmCORE]![StatusCombo]),"TRUE",[IACS TABLE]![Task Status]=[Forms]![FrmCORE]![StatusCombo])
Also with out any luck
Basically I need to be able to use multiple filters but with some of the filters having Null values if they are not needed.
I am also a self confessed idiot so if you could go slowly that would be brilliant J
Thank you
PS unfortunatly i cannot post a sample of the DB as it contains sensitive data and the network at work wont permit uploads

My table data (table called IACS TABLE) is displayed in a form called FrmCORE with in this form I need to be able to filter the data by multiple factors which are chosen from combo boxes called
PriorityCombo
CompletedCombo
NotifiedCombo
StatusCombo,
SiteCloseCombo
OwnerCombo
I can filter by each one individually no problems with an applyfilter macro with the Where condition as
[IACS TABLE][Priority] = Forms![FrmCORE]![PriorityCombo]
the priority bit is the column name with in IACS TABLE.
I can also filter by 2 factors or more like this
[IACS TABLE]![Priority] = Forms![FrmCORE]![PriorityCombo] AND [IACS TABLE]![Task Status] = Forms![FrmCORE]![StatusCombo] AND etc etc
but this wont work if I only need to filter by 1 factor as the string is looking for 2 or more factors.
There is a function called query by form (QBF) which I have been reading up on but I cant seem to get it to work

SELECT [IACS TABLE].*
FROM [IACS TABLE]
WHERE (((IACS TABLE.Priority)= Forms.FrmCORE.PriorityCombo),(IACS TABLE.Task Status)= Forms.FrmCORE.StatusCombo) etc
Or something like that anyway
I think you then apply this to a command button but I’ve been trying for over a day now and I’ve completely run out of ideas. Im probably using macros completely wrong here which is why it isn’t working!!
I have also been messing with macros doing variants of the following;
Like IF(IsNull([Forms]![FrmCORE]![PriorityCombo]),"TRUE",[IACS TABLE]![Priority]=[Forms]![FrmCORE]![PriorityCombo]) AND Like IF (IsNull([Forms]![FrmCORE]![StatusCombo]),"TRUE",[IACS TABLE]![Task Status]=[Forms]![FrmCORE]![StatusCombo])
Also with out any luck
Basically I need to be able to use multiple filters but with some of the filters having Null values if they are not needed.
I am also a self confessed idiot so if you could go slowly that would be brilliant J
Thank you
PS unfortunatly i cannot post a sample of the DB as it contains sensitive data and the network at work wont permit uploads
