473,377 Members | 1,119 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,377 software developers and data experts.

Vetting Statement

83
I only want the last if then statement to include the AND statements written in the survett variable I created if certain conditions hold. I think there might be a problem with a " or '. Or maybe there is an easier way to do it.

Expand|Select|Wrap|Line Numbers
  1. Private Sub ARM_Enter()
  2.     Dim Surv
  3.     If Me.Deceased_Survivor = "No" And (Me.Policy_Type = "Survivorship UL" Or Me.Policy_Type = "Survivorship WL") Then
  4.     Surv = "Survivorship"
  5.     Else: Surv = ""
  6.     End If
  7.     Dim Survvet
  8.     If Surv = Survivorship Then
  9.     Survvet = Me.Age_2 >= 68  AND Me.Average_LE_2 > 35 AND Me.Average_LE_2 <= 180
  10.     End If
  11.     If Me.Age >= 68 And Me.Face_Amount >= 100000 And Me.Face_Amount <= 1500000 And Me.Average_LE >= 35 And Me.Average_LE <= 180 And Survvet Then
  12.     Me.ARM = "Price"
  13.     Else
  14.     Me.ARM = ""
  15.     End If
  16. End Sub
  17.  
Apr 10 '07 #1
1 1243
MMcCarthy
14,534 Expert Mod 8TB
Try this ...

Expand|Select|Wrap|Line Numbers
  1. Private Sub ARM_Enter()
  2.     Dim Surv
  3.     If Me.Deceased_Survivor = "No" Then
  4.    If Me.Policy_Type = "Survivorship UL" Or Me.Policy_Type = "Survivorship WL" Then
  5.       Surv = "Survivorship"
  6.    Else
  7.       Surv = ""
  8.    End If
  9. Else
  10.    Surv = ""
  11.     End If
  12.     Dim Survvet
  13.     If Surv = Survivorship Then
  14.     Survvet = Me.Age_2 >= 68  AND Me.Average_LE_2 > 35 AND Me.Average_LE_2 <= 180
  15.     End If
  16.     If Me.Age >= 68 And Me.Face_Amount >= 100000 And Me.Face_Amount <= 1500000 And Me.Average_LE >= 35 And Me.Average_LE <= 180 And Survvet Then
  17.     Me.ARM = "Price"
  18.     Else
  19.     Me.ARM = ""
  20.     End If
  21. End Sub
  22.  
Mary
Apr 11 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

28
by: Fábio Mendes | last post by:
I'm sorry if it's an replicate. Either my e-mail program is messing with things or the python-list sent my msg to /dev/null. I couldn't find anything related in previous PEP's, so here it goes a...
15
by: Nerox | last post by:
Hi, If i write: #include <stdio.h> int foo(int); int main(void){ int a = 3; foo(a); }
13
by: eman1000 | last post by:
I was recently looking at the prototype library (http://prototype.conio.net/) and I noticed the author used the following syntax: Object.extend(MyObj.prototype, { my_meth1: function(){},...
37
by: Steven Bethard | last post by:
The PEP below should be mostly self explanatory. I'll try to keep the most updated versions available at: http://ucsu.colorado.edu/~bethard/py/pep_create_statement.txt...
18
by: Steven Bethard | last post by:
I've updated the PEP based on a number of comments on comp.lang.python. The most updated versions are still at: http://ucsu.colorado.edu/~bethard/py/pep_create_statement.txt...
28
by: Steven Bethard | last post by:
Ok, I finally have a PEP number. Here's the most updated version of the "make" statement PEP. I'll be posting it shortly to python-dev. Thanks again for the previous discussion and suggestions!...
7
by: Steven Bethard | last post by:
I've updated PEP 359 with a bunch of the recent suggestions. The patch is available at: http://bugs.python.org/1472459 and I've pasted the full text below. I've tried to be more explicit about...
19
by: Steve | last post by:
ASP error number 13 - Type mismatch with SELECT...FOR UPDATE statement I got ASP error number 13 when I use the SELECT...FOR UPDATE statement as below. However, if I use SELECT statement without...
18
by: dspfun | last post by:
Hi! The words "expression" and "statement" are often used in C99 and C- textbooks, however, I am not sure of the clear defintion of these words with respect to C. Can somebody provide a sharp...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.