> I have a form and subform. In the subform I have made a textbox "SubCount"
> that counts the number of records.
[quoted text clipped - 5 lines]
> Subform is free the MainCount shows me erros "#Error". How can I hide that
> error message so it can be 0 or Just simply blank when Subform has no data
I already have following as control source
=[CSRInbound Subform].Form!Count
>Try using the function IsError
>
[quoted text clipped - 6 lines]
>> Subform is free the MainCount shows me erros "#Error". How can I hide that
>> error message so it can be 0 or Just simply blank when Subform has no data
Ofer Cohen - 24 May 2007 15:15 GMT
Not sure what you are trying to tell me, did you try the IsError?
e.g:
In the sub form create a text box, in the control source write
=Count(*)
That wil return the number of records in the sub form
*****************************************
In the main form create a text box, in it write
=IIf(IsError([CSRInbound Subform].Form!TextBoxName,0,[CSRInbound
Subform].Form!TextBoxName)
It will replace the error with 0

Signature
Good Luck
BS"D
> I already have following as control source
>
[quoted text clipped - 10 lines]
> >> Subform is free the MainCount shows me erros "#Error". How can I hide that
> >> error message so it can be 0 or Just simply blank when Subform has no data
khashid - 24 May 2007 15:46 GMT
If i use IIF , and count the records in subform if they r above 0 then gives
me the count if <0 then shows me "0" . is that possible?
>Not sure what you are trying to tell me, did you try the IsError?
>
[quoted text clipped - 15 lines]
>> >> Subform is free the MainCount shows me erros "#Error". How can I hide that
>> >> error message so it can be 0 or Just simply blank when Subform has no data
Ofer Cohen - 24 May 2007 15:15 GMT
Not sure what you are trying to tell me, did you try the IsError?
e.g:
In the sub form create a text box, in the control source write
=Count(*)
That wil return the number of records in the sub form
*****************************************
In the main form create a text box, in it write
=IIf(IsError([CSRInbound Subform].Form!TextBoxName),0,[CSRInbound
Subform].Form!TextBoxName)
It will replace the error with 0

Signature
Good Luck
BS"D
> I already have following as control source
>
[quoted text clipped - 10 lines]
> >> Subform is free the MainCount shows me erros "#Error". How can I hide that
> >> error message so it can be 0 or Just simply blank when Subform has no data
khashid - 24 May 2007 15:39 GMT
I did the same but it gives me erroe #Name, if i remove IsError then it just
simply gives me "0"
>Not sure what you are trying to tell me, did you try the IsError?
>
[quoted text clipped - 15 lines]
>> >> Subform is free the MainCount shows me erros "#Error". How can I hide that
>> >> error message so it can be 0 or Just simply blank when Subform has no data
khashid - 24 May 2007 15:47 GMT
If i use IIF , and count the records in subform if they r above 0 then gives
me the count if <0 then shows me "0" . is that possible?
>I did the same but it gives me erroe #Name, if i remove IsError then it just
>simply gives me "0"
[quoted text clipped - 4 lines]
>>> >> Subform is free the MainCount shows me erros "#Error". How can I hide that
>>> >> error message so it can be 0 or Just simply blank when Subform has no data