PC Review


Reply
Thread Tools Rate Thread

Empty Subform is a crazy !!

 
 
MrCC via AccessMonster.com
Guest
Posts: n/a
 
      22nd Sep 2007
dear all

now my problem is so simple so mad also

i have a form consist of 4 subforms each has a textbox called subtotal
(=sum([totcost])
and i have a textbox in the main form which is the grand totals for the 4
subtotals

now the problem if one of the subforms has no records its subtotal box be
came clear without any value ( its value not null nor empty i test it by
isnull & isempty) and the result that the grand total give error not even the
totals of the other subtotals ???


any tips???

thanks all

bye

--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...oding/200709/1

 
Reply With Quote
 
 
 
 
ruralguy via AccessMonster.com
Guest
Posts: n/a
 
      23rd Sep 2007
Duplicate the SubTotal textboxes on your main form with invisible textboxes.
Set the ControlSource of each invisible textbox to =Iff(IsError(SubForm1.Form.
SubTotal),0,SubForm1.Form.SubTotal) pointing to a different SubTotal in each
textbos. Then total your invisible texboxes instead.

MrCC wrote:
>dear all
>
> now my problem is so simple so mad also
>
> i have a form consist of 4 subforms each has a textbox called subtotal
>(=sum([totcost])
> and i have a textbox in the main form which is the grand totals for the 4
>subtotals
>
> now the problem if one of the subforms has no records its subtotal box be
>came clear without any value ( its value not null nor empty i test it by
>isnull & isempty) and the result that the grand total give error not even the
>totals of the other subtotals ???
>
> any tips???
>
>thanks all
>
>bye


--
HTH - RuralGuy (RG for short) acXP WinXP Pro
Please post back to this forum so all may benefit.

Message posted via http://www.accessmonster.com

 
Reply With Quote
 
 
 
 
=?Utf-8?B?U3RldmVN?=
Guest
Posts: n/a
 
      23rd Sep 2007
> came clear without any value ( its value not null nor empty i test it by
> isnull & isempty) and the result that the grand total give error not even the
> totals of the other subtotals ???


Try testing with IsNumeric()

Steve
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Form/subform totals don't balance when subform empty M Skabialka Microsoft Access Forms 1 4th Jun 2009 10:15 PM
Am I going crazy? Am I utterly stupid? Am I blind? OutlookAddressbook empty Henro Microsoft Outlook Discussion 1 6th Feb 2008 06:06 PM
NF325-A7 Sound problem: sounds like an echo ,,echo...echo makes me crazy...crazy...crazy...help...help...help David Sontag DIY PC 17 30th Nov 2007 07:45 AM
crazy browser crazy dr greg Freeware 2 16th Jan 2005 01:09 AM
messengers going crazy - it doesnt reember any changes i make - and its making ME go crazy now =?Utf-8?B?c2FyYWg=?= Windows XP Messenger 0 15th Feb 2004 06:56 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:35 AM.