hey guys i have a query where i need to say if txtPLUFROM is null select all records but if it isnt select all records between txtPLUFROMand txtPLUTO
my theory on it was as follows
IIf((Nz([Forms]![subfrmPLUFILTERS]![txtPLUFROM],0)=0),<>0,(>=[Forms]![subfrmPLUFILTERS]![txtPLUFROM] And <=[Forms]![subfrmPLUFILTERS]![txtPLUTO]))
but doesnt seem to work for when the text boxes are null it shows nothing but if they do have something in them it works on that filter
help please
my theory on it was as follows
IIf((Nz([Forms]![subfrmPLUFILTERS]![txtPLUFROM],0)=0),<>0,(>=[Forms]![subfrmPLUFILTERS]![txtPLUFROM] And <=[Forms]![subfrmPLUFILTERS]![txtPLUTO]))
but doesnt seem to work for when the text boxes are null it shows nothing but if they do have something in them it works on that filter
help please