>Hi again!
>After reading Your tip, changing RecordsetClone expression to Recordset and
>getting an error msgbox, I've googgled on the msgbox content (about safety,
>sandbox etc.) and found that it may be a safety issue.
>I've changed Macro safety level to Low in my user' comp - and that made a
>trick. Now the formuls works.
>I hope, lowing the safety level is not punishible in my case, although maybe
>it is better to have a way to deal with no-records-#errors without messing
>with the safety?
>
>"Allen Browne" wrote:
>
>> Is your user on Access 2007?
>>
>> There's a bug in the new version where that expression doesn't work. See:
>> Avoid #Error in form/report with no records
>> at:
>>
http://allenbrowne.com/RecordCountError.html>>
>> The article explains how to create a little wrapper function that does work
>> (assuming that they have the database in a trusted location.)
>>
>> --
>> Allen Browne - Microsoft MVP. Perth, Western Australia
>> Tips for Access users -
http://allenbrowne.com/tips.html>> Reply to group, rather than allenbrowne at mvps dot org.
>>
>> "Mishanya" <Mishanya[ at ]discussions.microsoft.com> wrote in message
>> news:65BF6EA2-E19B-4D98-B8D6-6CD85C5374DE[ at ]microsoft.com...
>> >I have a few unbound text boxes in my form wich show totals from the form'
>> > subforms. The formula (in general names) is:
>> >
>> > =IIf([Subform].[Form].[RecordsetClone].[RecordCount]>0,[Subform].[Form]![Total],0)
>> >
>> > When I copy the DB to the user' computer, I get #Name?. The formula is
>> > working, though, if I leave only [Subform].[Form]![Total], without using
>> > the
>> > Iif function.
>> >
>> > I've made sure that Windows Regional and Language Options are the same in
>> > both computers (i.e. list separators, language for non-Unicode programs
>> > etc.), so the syntax can't be a problem.
>> >
>> > What else may I check in order to solve the problem?
>>
>>