subform checker

kingsgambit

Registered User.
Local time
Today, 23:21
Joined
May 27, 2001
Messages
134
On my main form I have two subforms, one for parts and one for labour. When I select what parts the customers wants and what type of labour they require and how many hours. I can click produce invoice report and that works fine.
But if I don't select either parts or labour the report shows errors because it can't calculate the price and labour. How can I get it to check if each subform has a item in it, and if no item has been select give the record a zero value
 
You have to use the HasData method, search the reports section for examples
 

Users who are viewing this thread

Back
Top Bottom