Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Software > Access General > IF Staetement Q...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 5 Topic 92502 of 97661
Post > Topic >>

IF Staetement Question

by =?Utf-8?B?UGhpbA==?= <Phil@[EMAIL PROTECTED] > Aug 7, 2008 at 04:25 AM

Hi

I want an image to be visible if the event is fully booked I an unbound 
control on the page that calculates the number of spaces called [number of

spaces] it calculates it using;

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

This works and has for years, to make the image visible I put the
following 
code:
into the Form on current event:

If Nz(Me.[Spaces Remaining]) = 0 Then
Me.Image235.Visible = False
Else
Me.Image235.Visible = True
End If

The image is always visible on every record, now I may have made a mistake

on the code because I normally do, but I have also noticed that when a
record 
loads the control [Spaces Remaining] has a value briefly before becoming 0

like its doing the calculation on the after the form is loaded

Can anyone help

thanks

Phil
 




 5 Posts in Topic:
IF Staetement Question
=?Utf-8?B?UGhpbA==?= <  2008-08-07 04:25:00 
Re: IF Staetement Question
John Spencer <spencer@  2008-08-07 07:52:29 
Re: IF Staetement Question
=?Utf-8?B?UGhpbA==?= <  2008-08-07 05:24:02 
RE: IF Staetement Question
=?Utf-8?B?TWF1cmljZQ==?=   2008-08-07 04:54:00 
RE: IF Staetement Question
=?Utf-8?B?UGhpbA==?= <  2008-08-07 05:14:01 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Dec 4 22:03:52 CST 2008.