J
Jay Myhre
I am using the following AfterUpdate code when exiting a text box named
Narrative:
Private Sub Narrative_AfterUpdate()
For Each ctl In Me.Controls
If ctl.Name = "Narrative" Then
ctl.Enabled = True
Else
If ctl.ControlType = acTextBox Then ctl.Enabled = False
End If
Next ctl
DoCmd.SetWarnings False
DoCmd.RunCommand acCmdSelectRecord
Me.Narrative.SetFocus
DoCmd.RunCommand acCmdSpelling
DoCmd.SetWarnings True
For Each ctl In Me.Controls
If ctl.ControlType = acTextBox Then ctl.Enabled = True
Next ctl
End Sub
My problem is that some users are reporting that it occassionally checks
other records in the table, not just the one being viewed. I have the form
opened as acFormAdd and the Cycle = Current Record. Is there anything I can
add that will force it to do only the record being added?
Narrative:
Private Sub Narrative_AfterUpdate()
For Each ctl In Me.Controls
If ctl.Name = "Narrative" Then
ctl.Enabled = True
Else
If ctl.ControlType = acTextBox Then ctl.Enabled = False
End If
Next ctl
DoCmd.SetWarnings False
DoCmd.RunCommand acCmdSelectRecord
Me.Narrative.SetFocus
DoCmd.RunCommand acCmdSpelling
DoCmd.SetWarnings True
For Each ctl In Me.Controls
If ctl.ControlType = acTextBox Then ctl.Enabled = True
Next ctl
End Sub
My problem is that some users are reporting that it occassionally checks
other records in the table, not just the one being viewed. I have the form
opened as acFormAdd and the Cycle = Current Record. Is there anything I can
add that will force it to do only the record being added?