Record Selector Default woes

IndigoStickman

Registered User.
Local time
Today, 07:14
Joined
Sep 13, 2013
Messages
10
Hi all,

I've got in place a Modal search form that produces a list of results based on a number of keywords in the relevant text fields.

for the on_Click VB I have the following code:

Code:
Private Sub btnopen_Click()
If (Me.CurrentRecord = 0) Then
    MsgBox "Please Select a Record", vbExclamation, "Nothing Selected!!"
    Else
        Me.Visible = False
    End If
End Sub


Now this is fine, except the Record Selector is on (it needs to be for the remainder of the on_Click process), and always seems to default to the top record in the list, which may not be the one the user wants: I want to guard against an accidental Enter press or button Click with the above code, but the Me.Visible always equals False due to the record selector refusing to move off a "current record" prior to user selection.

Is there any way to have the record selector not actually pointing to anything unless by user input?

Thanks in advance.
 

Users who are viewing this thread

Back
Top Bottom