Dimitris-

In the Current event of the form, do:

  If Not (Me.Absent) Then
    Me.Score.Enabled = False
    Me.Success.Enabled = False
  Else
    Me.Score.Enabled = True
    Me.Success.Enabled = True
  End If

In AfterUpdate of Score, do:

  If Me.Score > 70 Then
     Me.Success = True
  Else
     Me.Success = False
  End If

In AfterUpdate of Absent, do:

  If (Me.Absent) Then
    Me.Score.Enabled = True
    Me.Success.Enabled = True
  Else
    Me.Score = Null
    Me.Score.Enabled = False
    Me.Success = Null
    Me.Success.Enabled = False
  End If

John Viescas, author
"Building Microsoft Access Applications"
"Microsoft Office Access 2003 Inside Out"
"Running Microsoft Access 2000"
"SQL Queries for Mere Mortals"
http://www.viescas.com/
 

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf
Of Dimitris
Sent: Thursday, December 22, 2005 7:25 AM
To: [email protected]
Subject: [ms_access] if score > 70 then succes = No # How do I do this?

Hi,

I have a table with fields "score" of type integer, "success" of type
Yes/No and "absent" of type Yes/No.

When "score" gets a value bigger than 70, "success" must be
automatically set to "Yes". Furthermore, if field "absent" becomes
"No", "score" and "success" must not allow a value to be entered. 

How do I do this?
Thanks in advance,
Dimitris







 
Yahoo! Groups Links



 






------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/KIlPFB/vlQLAA/TtwFAA/q7folB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ms_access/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to