ultimatewilliam
Programmer
the formula goes like this:
{ImpJobProcess.dateperformed} in {?BegDate} to {?EndDate} and
((if not isnull({?parProcess1}) then InStr(uppercase({ImpJobProcess.process}),uppercase({?parProcess1}))<>0) or
(if not isnull({?parProcess2}) then InStr(uppercase({ImpJobProcess.process}),uppercase({?parProcess2}))<>0) or
(if not isnull({?parProcess3}) then InStr(uppercase({ImpJobProcess.process}),uppercase({?parProcess3}))<>0) or
(if not isnull({?parProcess4}) then InStr(uppercase({ImpJobProcess.process}),uppercase({?parProcess4}))<>0) or
(if not isnull({?parProcess5}) then InStr(uppercase({ImpJobProcess.process}),uppercase({?parProcess5}))<>0) or
(if not isnull({?parProcess6}) then InStr(uppercase({ImpJobProcess.process}),uppercase({?parProcess6}))<>0) or
(if not isnull({?parProcess7}) then InStr(uppercase({ImpJobProcess.process}),uppercase({?parProcess7}))<>0) or
(if not isnull({?parProcess8}) then InStr(uppercase({ImpJobProcess.process}),uppercase({?parProcess8}))<>0) or
(if not isnull({?parProcess9}) then InStr(uppercase({ImpJobProcess.process}),uppercase({?parProcess9}))<>0) or
(if not isnull({?parProcess10}) then InStr(uppercase({ImpJobProcess.process}),uppercase({?parProcess10}))<>0)) and
IsNull ({ImpJobProcess.datecompleted})
i have 10 parameters where in the user must supply at least one value (not necessarily all so others may be empty). its suppose to select the records where the PROCESS field contains the value of a parameter (parProcessN) within date range, but what happens here is that it actually selects all the records. is there anything wrong with the formula? pls help, thanks!
{ImpJobProcess.dateperformed} in {?BegDate} to {?EndDate} and
((if not isnull({?parProcess1}) then InStr(uppercase({ImpJobProcess.process}),uppercase({?parProcess1}))<>0) or
(if not isnull({?parProcess2}) then InStr(uppercase({ImpJobProcess.process}),uppercase({?parProcess2}))<>0) or
(if not isnull({?parProcess3}) then InStr(uppercase({ImpJobProcess.process}),uppercase({?parProcess3}))<>0) or
(if not isnull({?parProcess4}) then InStr(uppercase({ImpJobProcess.process}),uppercase({?parProcess4}))<>0) or
(if not isnull({?parProcess5}) then InStr(uppercase({ImpJobProcess.process}),uppercase({?parProcess5}))<>0) or
(if not isnull({?parProcess6}) then InStr(uppercase({ImpJobProcess.process}),uppercase({?parProcess6}))<>0) or
(if not isnull({?parProcess7}) then InStr(uppercase({ImpJobProcess.process}),uppercase({?parProcess7}))<>0) or
(if not isnull({?parProcess8}) then InStr(uppercase({ImpJobProcess.process}),uppercase({?parProcess8}))<>0) or
(if not isnull({?parProcess9}) then InStr(uppercase({ImpJobProcess.process}),uppercase({?parProcess9}))<>0) or
(if not isnull({?parProcess10}) then InStr(uppercase({ImpJobProcess.process}),uppercase({?parProcess10}))<>0)) and
IsNull ({ImpJobProcess.datecompleted})
i have 10 parameters where in the user must supply at least one value (not necessarily all so others may be empty). its suppose to select the records where the PROCESS field contains the value of a parameter (parProcessN) within date range, but what happens here is that it actually selects all the records. is there anything wrong with the formula? pls help, thanks!