Hi ItsMe
Ok, I couldn't get that to work. I tried to update the line so the sql statement could find it but could not get down to the single record without including the receipt field which is the primary field so I went and did the google to learn more about sql statements and variables. Long story short I came up with this code.
Code:
Dim RD As String
Dim MS As Long
If (Me.MSort) = 0 Then
'finds the RDate for the MSORT field
RD = Screen.ActiveForm.RDate
MS = Format(RD, "yymm")
'Places the above NRec into the GSort Control
Me.MSort = MS
DoCmd.GoToControl "VSort"
Else
Me.VSort.SetFocus
End If
It works but not sure if I am missing something that will haunt me in the future. This is not a multi user form yet. I'll cross that bridge one day I hope! If you could take a look at his and see if you see any issues I would appreciate it! Thanks again for your help!!