Clownfish1980m
Clownfish8182m
- Local time
- Today, 17:55
- Joined
- Sep 18, 2009
- Messages
- 40
I have a database containing two fields; one is “1st Tx Date” the second is “Contacted Date”. When an individual received a product the 1st TX Date field has a date input. Once oral confirmation is made they have received the product, a date is added to the Contacted Date. On a report I have two text boxes. The first is called Notification Time (Days), field name (Text107) and in that field I have it calculate the amount of time from 1st Tx Date to Contacted Date (I set the Control source to: =[Contacted Date]-[1st Tx Date]). This field works great. No issues. The second text box called “Text109” is where I want to calculate the date difference between Now() and 1st Tx Date when there is no Contacted Date entered. This tells me how many days have lapse between the 1st Tx Date and today. The coding I am trying is:
If [Contacted Date] = Null Then
[Text109] = "NA"
Else
[Text109] = Now() - [1st Tx Date]
End If
I have tried it under On Got Focus, On enter, On Format, on Mouse Move and cannot get it to work. Is there a way to get it to work automatically when the report is opened? Thanks Ken
If [Contacted Date] = Null Then
[Text109] = "NA"
Else
[Text109] = Now() - [1st Tx Date]
End If
I have tried it under On Got Focus, On enter, On Format, on Mouse Move and cannot get it to work. Is there a way to get it to work automatically when the report is opened? Thanks Ken