Expression used in a table

G

Guest

I have expressions in a field named LoanCriteria. Within that field I have
expressions such as..([LOANPROGRAM] <> 'CONSTRUCTION') AND ([PROPTYPE] NOT IN
(2010, 2020, 2030, 2040, 2050)).

The field is in a table with the following fields: GroupName, ConditionCode
and CheckList Descriptions and LoanCriteria (see code).

I want to make sure the expression is correct which will say if Construction
is selected then dont show any of the Proptypes. I just added the code to
show what I was doing. Its pretty basic but I took this over from another
developer.




rstLoanChecklist.Open "pplCheckListLoanItems", cn, adOpenDynamic,
adLockOptimistic
'Add Main CheckList Items
strSQL_Checklist = "Select * from pplCheckListItems where
((CheckListActive=True) and (ParentCheckListID Is Null) and
(LoanCriteria<>Null))"
rstChecklist.Open strSQL_Checklist, cn, adOpenDynamic,
adLockOptimistic
 
J

Joseph Meehan

OK I have never tried it, but I don't think you can put an expression in
the table. Tables only store data. They don't do calculations.

Queries do calculations and there you can use expressions.
 
G

Guest

I know sounds strange but as you can see it is in the code and they put the
expression in the table. It has worked like this for over 2 years. I just
wantto make sure my expression are correct?

Joseph Meehan said:
OK I have never tried it, but I don't think you can put an expression in
the table. Tables only store data. They don't do calculations.

Queries do calculations and there you can use expressions.

--
Joseph Meehan

Dia 's Muire duit


TKM said:
I have expressions in a field named LoanCriteria. Within that field I have
expressions such as..([LOANPROGRAM] <> 'CONSTRUCTION') AND ([PROPTYPE] NOT
IN
(2010, 2020, 2030, 2040, 2050)).

The field is in a table with the following fields: GroupName,
ConditionCode
and CheckList Descriptions and LoanCriteria (see code).

I want to make sure the expression is correct which will say if
Construction
is selected then dont show any of the Proptypes. I just added the code to
show what I was doing. Its pretty basic but I took this over from another
developer.




rstLoanChecklist.Open "pplCheckListLoanItems", cn, adOpenDynamic,
adLockOptimistic
'Add Main CheckList Items
strSQL_Checklist = "Select * from pplCheckListItems where
((CheckListActive=True) and (ParentCheckListID Is Null) and
(LoanCriteria<>Null))"
rstChecklist.Open strSQL_Checklist, cn, adOpenDynamic,
adLockOptimistic
 

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

Similar Threads


Top