Results 1 to 5 of 5

Thread: Execute SQL statement against an existing Recordset

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 1999
    Location
    Aberdeen
    Posts
    4

    Post

    Does anyone know if it is possible to execute an SQL statement against an existing recordset in order to create a sub Recordset???

    If so, How???

    Cheers

    Paul

  2. #2
    Registered User
    Join Date
    Apr 1999
    Location
    Brazil
    Posts
    144

    Post

    I don't understant your idea very well! you can test your record with the same WHERE if it return .EOF you use INSERT otherwise UPDATE.

    jeff

  3. #3
    New Member
    Join Date
    May 1999
    Location
    Indore,Madhya Pradesh, India
    Posts
    3

    Post

    I don't think you can design a sub recordset all you can do is search the recordset with the seek command and if you reach the desired record populate a DBGrid or populate a temporary table which you can delete after somemtime.

  4. #4
    New Member
    Join Date
    Jun 1999
    Posts
    3

    Post

    Are you using SQL? Have you considered creating a view?

  5. #5
    Lively Member
    Join Date
    Jun 1999
    Location
    Raleigh, NC
    Posts
    70

    Post

    Use the Filter method on the first recordset to open the second one. See the example in the VB-DAO Reference for Filter.

    Bash

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