IIf - This has GOT to be simple...

KirkComer

Registered User.
Local time
Today, 18:22
Joined
Oct 21, 2005
Messages
50
but I can't seem to figure it out. All I get is Null values when I run the query.

I have a form with a start text box and a end text box. I use the form name sucessfully in the criteria row so I know there is no problem with the form name. I also know there is no problem with the qry name. Does anyone see anything I am doing wrong?!?!

The query I am working in is labeled [qry_old_summary_date_range]. Just wanted to clarify that is not a problem.

1st Pay Increase: IIf([qry_old_summary]![1st Pay Increase]>=[Forms]![Human Resources]![Start] And [qry_old_summary]![1st Pay Increase]<=[Forms]![Human Resources]![End],[qry_old_summary]![1st Pay Increase],Null)
 
1st Pay Increase: IIf(([qry_old_summary]![1st Pay Increase]>=[Forms]![Human Resources]![Start]) And ([qry_old_summary]![1st Pay Increase]<=[Forms]![Human Resources]![End]),[qry_old_summary]![1st Pay Increase],Null)
 

Users who are viewing this thread

Back
Top Bottom