Results 1 to 2 of 2

Thread: recordset.seek problem

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2005
    Posts
    14

    recordset.seek problem

    Private Sub Command2_Click()
    prompt$ = "enter name"
    searchstr$ = InputBox(prompt$, "seraching")
    datcontainer.Recordset.Index = "Konteyner"
    datcontainer.Recordset.Seek "=", searchstr$
    If datcontainer.Recordset.NoMatch Then
    MsgBox "Couldn't find", vbExclamation, "Result"
    datcontainer.Recordset.MoveFirst
    End If
    End Sub

    when i debug this code it shows (visual basic warning) No current records. I just want to use my own message. How can i disable visual basic warnnigs as i mentioned?
    i am getting crazy. i want to disable them. can anyone help me please???
    thanks...

  2. #2
    Giants World Champs!!!! Mark Gambo's Avatar
    Join Date
    Sep 2003
    Location
    Colorado
    Posts
    2,965

    Re: recordset.seek problem

    Quote Originally Posted by odysseus
    Private Sub Command2_Click()
    prompt$ = "enter name"
    searchstr$ = InputBox(prompt$, "seraching")
    datcontainer.Recordset.Index = "Konteyner"
    datcontainer.Recordset.Seek "=", searchstr$
    If datcontainer.Recordset.NoMatch Then
    MsgBox "Couldn't find", vbExclamation, "Result"
    datcontainer.Recordset.MoveFirst
    End If
    End Sub

    when i debug this code it shows (visual basic warning) No current records. I just want to use my own message. How can i disable visual basic warnnigs as i mentioned?
    i am getting crazy. i want to disable them. can anyone help me please???
    thanks...
    Take a look at my response to your same question in the Classic VB Forum here.

    Please don't double post because it makes people less likely to want to help you.
    Regards,

    Mark

    Please remember to rate posts! Rate any post you find helpful. Use the link to the left - "Rate this Post". Please use [highlight='vb'] your code goes in here [/highlight] tags when posting code. When a question you asked has been resolved, please go to the top of the original post and click "Thread Tools" then select "Mark Thread Resolved."


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width