K
Karren Lorr
Hello
I am sorry to re-post this question but I can't get it to work after many
hours of trying and searching various websites for assistance.
I am trying to look to see if a text box on my form contains the string
"Found". If it does it will send an e mail (this section works fine). If it
does not then wait for 15 minutes and repeat the check to look for the string.
I can not get the code to wait and repeat.
I tried John Vinson's code
Me.Timer = 1000*60*15
Call Timer ' to have it "do something" the first time
but in this case I get the error "Method or Data Member not found" with the
Me.Time highlighted.
This is what I'm trying to accomplish (the e mail details have taken out for
this post)
Private Sub Form_Button_Click()
If Me.Found = "Found" Then
Call FnSafeSendEmail("emailaddress", "mailtitle", "mailbody", "", "", "")
DoCmd.Quit
Else
'wait 10 minutes and repeat, this is the section I need help with'
End If
End Sub
This small section of code is the last step in a quite complex set of codes.
All the rest of the process works fine and produces the desired results. It
is just this last section I am having problems with, repeating of the form’s
search of this text box.
Can anyone help with this please
I am sorry to re-post this question but I can't get it to work after many
hours of trying and searching various websites for assistance.
I am trying to look to see if a text box on my form contains the string
"Found". If it does it will send an e mail (this section works fine). If it
does not then wait for 15 minutes and repeat the check to look for the string.
I can not get the code to wait and repeat.
I tried John Vinson's code
Me.Timer = 1000*60*15
Call Timer ' to have it "do something" the first time
but in this case I get the error "Method or Data Member not found" with the
Me.Time highlighted.
This is what I'm trying to accomplish (the e mail details have taken out for
this post)
Private Sub Form_Button_Click()
If Me.Found = "Found" Then
Call FnSafeSendEmail("emailaddress", "mailtitle", "mailbody", "", "", "")
DoCmd.Quit
Else
'wait 10 minutes and repeat, this is the section I need help with'
End If
End Sub
This small section of code is the last step in a quite complex set of codes.
All the rest of the process works fine and produces the desired results. It
is just this last section I am having problems with, repeating of the form’s
search of this text box.
Can anyone help with this please