Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

#Error in Main Form Text Box 1

Status
Not open for further replies.

1starr

Programmer
Feb 19, 2002
34
US
I have three subforms on my main form and because there is no data in one of the subforms I get a #Error message in my text box. Here is the formula that I am using"=IIf([subActiveCallingCards].[Form].[HasData]=True,[subActiveCallingCards].[Form]![text6],0)+ IIf([subSpareCallingCards].[Form].[HasData]=True,[subSpareCallingCards].[Form]![Text6],0)+ IIF([subSuspendedCallingCards].[Form].[HasData]=True,[subSuspendedCallingCards].[Form]![text6],0)". I have tried other ways of putting this formula in and did get this "#Name?" back but that wasn't a good hint of what the solution is. I need all the help I can get, thank you.
 
An easy way to test your syntax is to open a module and paste the expression preceded by ? into the immediate window and hit return JHall
 
I try that and it didn't solve my problem.
 
I didn't say it would solve your problem but that it might help diagnose it. What was the system's response to your command? JHall
 
I got a complie error - Expected:expression
 
If you'd like, you can email the .mdb to me at jhall@worthltd.com JHall
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top