Calculation on Date shows #Name?

Trevor G

Well-known Member
Joined
Jul 17, 2008
Messages
6,842
Office Version
  1. 365
Platform
  1. Windows
I have a form where I have a real simple calculation which is looking at the date and subtracting a date recorded in each record, every record has a date and the field is called [SelectedDate] this is date/time field and format is set to short date, but occasionaly the date calculations shows

#Name? which then prevents me using another command button to select the next form based on the selected record. The calculation is:

=Date()-[SelectedDate]

I really don't see why the calcuation causes a period issue.
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Trevor place the calculation in the query that drives your form, you can rename the expression, that should then resolve the calculation not displaying properly from time to time on the form.
 
Upvote 0
Thanks Healey21 I have done this and it has resolved the issue. So happy enough its done that.
 
Upvote 0

Forum statistics

Threads
1,224,574
Messages
6,179,629
Members
452,933
Latest member
patv

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top