S scgoodman scgoodman Local time Today, 02:22 Joined Jun 6, 2008 Messages 87 Mar 24, 2009 #1 Trying to do a dateadd in hours in access and if one of the fields that needs to be populated to calculate this field is not populated I get an #Error message. How can I just show this as blank?
Trying to do a dateadd in hours in access and if one of the fields that needs to be populated to calculate this field is not populated I get an #Error message. How can I just show this as blank?
boblarson Smeghead Local time Yesterday, 23:22 Joined Jan 12, 2001 Messages 32,059 Mar 24, 2009 #2 Use the NZ function.
S scgoodman scgoodman Local time Today, 02:22 Joined Jun 6, 2008 Messages 87 Mar 24, 2009 #3 Can you elborate on this? NZ function... This is what I have built: DeliveryDueDate: DateAdd("h",[TurnaroundTime],[ReceivedDate]
Can you elborate on this? NZ function... This is what I have built: DeliveryDueDate: DateAdd("h",[TurnaroundTime],[ReceivedDate]
boblarson Smeghead Local time Yesterday, 23:22 Joined Jan 12, 2001 Messages 32,059 Mar 25, 2009 #4 Actually, perhaps that isn't the best as it would return a very ancient date. I think you would probably go for this instead: DeliveryDueDate: IIf(IsNull([ReceivedDate]),"",DateAdd("h",[TurnaroundTime],[ReceivedDate]))
Actually, perhaps that isn't the best as it would return a very ancient date. I think you would probably go for this instead: DeliveryDueDate: IIf(IsNull([ReceivedDate]),"",DateAdd("h",[TurnaroundTime],[ReceivedDate]))