M
M.Costner
Hi everyone:
I know this may sound basic, but I need advice from experienced programmers!
I am trying to use the update method to change from false to true a check
box a yes/no field only for the record I'm working with after it sends an
e-mail, but it keeps updating the yes/no fields of all records in the
databse. What am I doing wrong? How do I specify that the update is just
for the record on focus? Help much appreciated! Mark
Here's what I'm using:
Private Sub Command91_Click()
Dim record As String
Dim Update As String
Dim Message As String
record = "SELECT * From Database WHERE Database.sentemail = False"
If Me![sentemail] = False Then
DoCmd.SendObject _
, _
, _
, _
, _
, _
, _
, _
True
Update = "Update Database SET sentemail = True WHERE sentemail = False"
CurrentDb.Execute Update
Else
Message = MsgBox("blablabla")
End If
End Sub
I know this may sound basic, but I need advice from experienced programmers!
I am trying to use the update method to change from false to true a check
box a yes/no field only for the record I'm working with after it sends an
e-mail, but it keeps updating the yes/no fields of all records in the
databse. What am I doing wrong? How do I specify that the update is just
for the record on focus? Help much appreciated! Mark
Here's what I'm using:
Private Sub Command91_Click()
Dim record As String
Dim Update As String
Dim Message As String
record = "SELECT * From Database WHERE Database.sentemail = False"
If Me![sentemail] = False Then
DoCmd.SendObject _
, _
, _
, _
, _
, _
, _
, _
True
Update = "Update Database SET sentemail = True WHERE sentemail = False"
CurrentDb.Execute Update
Else
Message = MsgBox("blablabla")
End If
End Sub