G
Guest
Hello.....
Access 2003 ...Windows XP Pro
In maintaining my record position within a recordset, to use after a
Requery, I am using the following code which is doing the job.
'save value of primary key
If Not Me.NewRecord Then
mPrimaryKey = Nz(Me.txtOurPeopleID)
End If
Me.FilterOn = False
Me.RecordSource = "qryReturnedMailFollowUpProcessor"
Me.Requery
'go back to record you were on
If mPrimaryKey <> 0 Then
Me.txtOurPeopleID.SetFocus
DoCmd.FindRecord mPrimaryKey
End If
My problem is that when I set
Me.txtOurPeopleID .Visible = False
I get an error because SetFocus and Visible = False creates a conflict. I
get why this is happening.
As would be obvious, I do not want to display the txtOurPeopleID control.
Other than out of view of the display window for the form, are there other
options.
Thanks as Always......
Access 2003 ...Windows XP Pro
In maintaining my record position within a recordset, to use after a
Requery, I am using the following code which is doing the job.
'save value of primary key
If Not Me.NewRecord Then
mPrimaryKey = Nz(Me.txtOurPeopleID)
End If
Me.FilterOn = False
Me.RecordSource = "qryReturnedMailFollowUpProcessor"
Me.Requery
'go back to record you were on
If mPrimaryKey <> 0 Then
Me.txtOurPeopleID.SetFocus
DoCmd.FindRecord mPrimaryKey
End If
My problem is that when I set
Me.txtOurPeopleID .Visible = False
I get an error because SetFocus and Visible = False creates a conflict. I
get why this is happening.
As would be obvious, I do not want to display the txtOurPeopleID control.
Other than out of view of the display window for the form, are there other
options.
Thanks as Always......