Andy Lacey
andy at minstersystems.co.uk
Thu Feb 5 08:38:43 CST 2015
And yet if fld.value is not null, i.e. has a value then Weekday(rst!fld) works happily. It only errors if the value is Null. Bizarre. Could cause me a whole lot of grief. There could be a thousand places in the db where a built-in function is passed something like rst!fld, and impossible to search for them because fld could be anything as could the function name. Ouch. Andy > On 05 February 2015 at 14:28 Gustav Brock <gustav at cactus.dk> wrote: > > > Hi Andy > > Good question. But it may have to do with that when using rst!fld your passing > the full Field object while, of course, using the Value property only the > value is passed. > > And Weekday reads the parameter ByRef as you can see from IntelliSense; had it > been ByVal it would probably have made no difference. I've noticed that just > about none of the built-in functions take parameters ByVal. > > /gustav > > > -----Oprindelig meddelelse----- > Fra: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] På vegne af Andy Lacey > Sendt: 5. februar 2015 13:44 > Til: Access Developers discussion and problem solving > Emne: Re: [AccessD] Change in the evaluation of IIF, or something else? > > Gustav, you are, as ever, correct. > > It was always my belief that .Value is the default if no property specified, > and that belief seems to hold good everywhere else. Why not here? > > Andy > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com