Microsoft
Software
Hardware
Network
Question : #Error when sub form has no value
Hi EE
I have a field on a form with a sum as the control:
=(([qryCountSalesCallStat subform].Form!Count_No_Ans
wer)+([qry
CountSales
CallStat subform].Form![Line Busy])+([qryCountSalesCall
Stat subform].Form![Answer Phone]))
This works fine when the subform has a value however when you create a new record this field always displays #Error message as its trying to add up a value at this stage doesnt exist.
I need this to say 0 instead of #Error.
I have tried using an iif formula but cant get it to work
How can i re-write the formula so if the subreport it refers to has not yet a value it returns a 0 and not a #Error
Answer : #Error when sub form has no value
txtBox1= DMax ("field","table") + 1
Random Solutions
How do I add a second domain controller for OWA authentiion on Exchange 2007?
Communigate Pro bounce back "The message was not delivered because the return address was refused"
dateDiff - combining a date selection and a time selection
How does the pointers of an inode's data block relattes to the logical block address of a SCSI device?
Combofix Log - Analysis Assistance Request
Avoid pinned programs expanding in Windows 7 start menu
After moving mailbox to Exchange 2007 lost all Outlook rules
Quickbooks 2010 QB crashes when trying to print to network printer
Installing SSL certifcate on exchange 2010
How do I delete a file from a folder (uploads directory) when I delete its reference in the database?