From that syntax, I am guessing you are defining the .ControlSource property of some control on the report or form.
First, was my guess correct?
Second, where is this "[fromdate]" defined? Is it ALSO a control on the same form? Is it in an underlying recordset? Is it a member of the implied or explicit recordset defined in .RecordSource?
The #Name error specifically is saying that when attempting to find that entity, something could not be found that was needed for the computation. I.e. a name search failed. There are only two options here. Either Format is not defined - implying a reference error; or [fromdate] is not defined - implying either a spelling or visibility error. The constant "dddd" is there, but it is a legit input to Format if you wanted to get the day of the week spelled out.
I am ruling out a syntax error in the use of colons or semicolons because, as has been mentioned, that is dependent on language settings and other regional settings. Plus it is easy enough to test.
If you wanted to debug this, if you have an OnCurrent event routine, you could set a breakpoint there and open the Immediate window. Then issue the command
Debug.Print [fromdate]
If it is not visible in that context, you have your answer. If it is, then try
Debug.Print format([fromdate];"dddd")
See what answer comes back there. You can also try the "," variant for snorts & giggles to see if it comes back with a different answer.