Event Database - Calculate remaining seating

G

Guest

When I upgraded to Access 2003 the functionality of the "spaces remaining"
(#NAME? appears in the form box) for each event was lost and susequently the
calculation of the remaining seats in the for registration. How do I reset
this function or relationship so it will do the calculation?
 
U

UpRider

Quick to try, but type carefully:
=NZ([AvailableSpaces],0)-IIf([Events
Subform].Form.RecordsetClone.RecordCount=0,0,NZ([Events
Subform].Form![Total
Attendees],0))

UpRider

ginette said:
don't know how to debug. This is the formula that appears in the design
view
box

=[AvailableSpaces]-IIf([Events
Subform].Form.RecordsetClone.RecordCount=0,0,[Events Subform].Form![Total
Attendees])

Thanks

Wayne-I-M said:
Hi Ginette

Are you using dates for the events - according to Mr Gates the whole
world
runs on american time so check the date format (18/08/2007 - 08/16/2007).

Do you have any field names with spaces - check the they are enlclosed.

Open the code and debug (on a copy of the database - just in case)

All worth a try
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top