I am generating a word file from a form.
It worked okay, but suddenly it found an error on SetFocus
But just on one specific location i can't see why.
The message comes on " Me.c169_pressure.SetFocus".
I don't see what is wrong there.
It worked okay, but suddenly it found an error on SetFocus
But just on one specific location i can't see why.
The message comes on " Me.c169_pressure.SetFocus".
I don't see what is wrong there.
Code:
' Ptest:
Me.Ptest.SetFocus
If Me.Ptest.Text = "" Then
Me.Ptest.Text = "0"
End If
FindText = "[ID03-PtGK]"
ReplaceWith = Me.Ptest
.Execute FindText:=FindText, ReplaceWith:=ReplaceWith, Replace:=2
'Pressure:
Me.c169_pressure.SetFocus
If Me.c169_pressure.Text = "" Then
Me.c169_pressure.Text = Me.MaxPressure.Text
End If
FindText = "[ID02-PdGK]"
ReplaceWith = Me.c169_pressure
.Execute FindText:=FindText, ReplaceWith:=ReplaceWith, Replace:=2