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

Form on exit event procedure not working any idea why? 1

Status
Not open for further replies.

pfunk

Technical User
May 7, 2007
37
GB
Private Sub Notes_Exit(Cancel As Integer)
If Trim(Me![Status Codes]) = "PROMISE" Or Trim(Me![Payment_Due_Date]) = "<date" Then
MsgBox "Your Debtor has Broken thier promise and you did not follow up on it therefore please code to Broken Promise ASAP."
Me![Status Codes].SetFocus
End If
End Sub
 
What do you mean 'not working'?

Do you mean to compare to current date?
 
It looks like a minor codeing error

You have:

If Trim(Me![Status Codes]) = "PROMISE" Or Trim(Me![Payment_Due_Date]) = "<date" Then


Try this:


If Trim(Me![Status Codes]) = "PROMISE" Or Trim(Me![Payment_Due_Date]) =< date Then

All I want is the chance to prove money won't make me happy.
fish-jumping-1.gif
 
That should be:

If Trim(Me![Status Codes]) = "PROMISE" Or Trim(Me![Payment_Due_Date]) <= Date Then




All I want is the chance to prove money won't make me happy.
fish-jumping-1.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top