LIKE

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hi,

I have the following, but I don't think it is being evaluated correctly:

ElseIf Me.prevstatus Like "pastdue*" And _
Me.todaystatus = "CURRENT" And _
Me.[Amended This Mo?] = 1 Or Me.[Extended This Mo?] = 1 And _
Me.[Paid Off?] = 0 And _
Me.[Active Inactive Flag] = "I" Then
With CodeContextObject
.pasted = "CURRENT BKAMD/DEF"
End With


For example, I think the following line:
ElseIf Me.prevstatus Like "pastdue*" And _
is not being evaluated correctly, because prevstatus can have a value of
"PASTDUE B4-50" or "PASTDUE A1-9"

I also think the following line:
Me.[Inventory Status] = "IN" Or Me.[Inventory Status] = "SO" Then
is being evaluated incorrectly. I would like to change it to something like:
Me.[fieldname] IN('IN','SO')
but I tried it and it did not work.

Also, do I need to change the following line:
Me.[Amended This Mo?] = 1 Or Me.[Extended This Mo?] = 1 And _
to:
(Me.[Amended This Mo?] = 1 Or Me.[Extended This Mo?] = 1) And _
so that it is evaluated as a single condition, or even correctly?

thanks in advance,
geebee
 

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

change to UPDATE query 3
runtime error 1
syntax error 2
duplicate records 3
query error 1
unwanted duplicate loan account numbers 1
Home NAS. Talk to me. 28
DUPLICATE QUERY results 1

Back
Top