Function help please

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Function as copied from sql view

IIf(([dbo_Pr_EmpJobData_T]![dteEndRateDate]=9/9/9999),"
",[dbo_Pr_EmpJobData_T]![dteEndRateDate])

What I am wanting is if the date is 9/9/9999 then show nothing. But if it
is anything other than 9/9/9999 show me the data in the field.

When I run this all the fields show as nothing. help?
 
jjacob said:
Function as copied from sql view

IIf(([dbo_Pr_EmpJobData_T]![dteEndRateDate]=9/9/9999),"
",[dbo_Pr_EmpJobData_T]![dteEndRateDate])

What I am wanting is if the date is 9/9/9999 then show nothing. But
if it is anything other than 9/9/9999 show me the data in the field.

When I run this all the fields show as nothing. help?

Dates in Access need to be delimited with #.

IIf(([dbo_Pr_EmpJobData_T]![dteEndRateDate]=#9/9/9999#),"",[dbo_Pr_EmpJobData_T]![dteEndRateDate])
 
jjacob said:
Function as copied from sql view

IIf(([dbo_Pr_EmpJobData_T]![dteEndRateDate]=9/9/9999),"
",[dbo_Pr_EmpJobData_T]![dteEndRateDate])

What I am wanting is if the date is 9/9/9999 then show nothing. But if it
is anything other than 9/9/9999 show me the data in the field.

When I run this all the fields show as nothing. help?

If dteEndRateDate is actually a date field, you can do this:

IIf(([dbo_Pr_EmpJobData_T]![dteEndRateDate]=#9/9/9999#),"
",[dbo_Pr_EmpJobData_T]![dteEndRateDate])

Tom Lake
 
Thanks Rick! Knew it was something simple I overlooked.

Rick Brandt said:
jjacob said:
Function as copied from sql view

IIf(([dbo_Pr_EmpJobData_T]![dteEndRateDate]=9/9/9999),"
",[dbo_Pr_EmpJobData_T]![dteEndRateDate])

What I am wanting is if the date is 9/9/9999 then show nothing. But
if it is anything other than 9/9/9999 show me the data in the field.

When I run this all the fields show as nothing. help?

Dates in Access need to be delimited with #.

IIf(([dbo_Pr_EmpJobData_T]![dteEndRateDate]=#9/9/9999#),"",[dbo_Pr_EmpJobData_T]![dteEndRateDate])
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top