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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pass number range values to table from form

Status
Not open for further replies.
May 5, 2000
168
US
I am trying to pass these values to a field in the underlying table. This doesn't seem to be working.

How would I write a CASE statement for this

If Forms!frmSrScreen.Age.Value < 75 Then
!VulnA = 0

ElseIf Forms!frmSrScreen.Age.Value > 84 Then
!VulnA = 3

Else: !VulnA = 1

End if
 
Select Case Forms!frmSrScreen.Age.Value
Case Is < 75
!VulnA = 0
Case Is > 84
!VulnA = 3
Case Else
!VulnA = 1
End Select

Win2000P/Acc2000 - It's best to stay with products that work.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top