Update field with another if empty only in the query

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

Guest

I am creating a query that is showing early / late delivery on Purchase
Orders. The problem is the request date is always filled in but the promise
date is sometimes blank. What is the best way to fill in the promise date
with the request date if the promise is blank.

Thanks for all your help.
 
In query design view, something like:

Promised Date: IIF([Promise date]="",[Request date],[Promise date])


"(e-mail address removed)"
 
David

I typed in the info listed below but the response from the query was an
#error message in the cell that was created if it had data before or if it
was blank the cell is still blank.

Could this be because it is formated as a date cell?

David Cox said:
In query design view, something like:

Promised Date: IIF([Promise date]="",[Request date],[Promise date])


"(e-mail address removed)"
I am creating a query that is showing early / late delivery on Purchase
Orders. The problem is the request date is always filled in but the
promise
date is sometimes blank. What is the best way to fill in the promise date
with the request date if the promise is blank.

Thanks for all your help.
 
sorry, try:

Promised Date: IIF(isnull([Promise date]),[Request date],[Promise date])



"(e-mail address removed)"
David

I typed in the info listed below but the response from the query was an
#error message in the cell that was created if it had data before or if it
was blank the cell is still blank.

Could this be because it is formated as a date cell?

David Cox said:
In query design view, something like:

Promised Date: IIF([Promise date]="",[Request date],[Promise date])


"(e-mail address removed)"
I am creating a query that is showing early / late delivery on Purchase
Orders. The problem is the request date is always filled in but the
promise
date is sometimes blank. What is the best way to fill in the promise
date
with the request date if the promise is blank.

Thanks for all your help.
 
That worked, thanks for all your help. The quick responce was also very
nice. : )

David Cox said:
sorry, try:

Promised Date: IIF(isnull([Promise date]),[Request date],[Promise date])



"(e-mail address removed)"
David

I typed in the info listed below but the response from the query was an
#error message in the cell that was created if it had data before or if it
was blank the cell is still blank.

Could this be because it is formated as a date cell?

David Cox said:
In query design view, something like:

Promised Date: IIF([Promise date]="",[Request date],[Promise date])


"(e-mail address removed)"
I am creating a query that is showing early / late delivery on Purchase
Orders. The problem is the request date is always filled in but the
promise
date is sometimes blank. What is the best way to fill in the promise
date
with the request date if the promise is blank.

Thanks for all your help.
 

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