Results 1 to 2 of 2

Thread: Vba Access 97 Help!!!!

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Apr 2001
    Location
    New York
    Posts
    679

    Vba Access 97 Help!!!!

    Simply put I am trying to figure out where to begin this code, when I am trying to skip a record that another user is currently on...

    I do not want to use the record locking, because that only does not allow the user to edit....I do not want the user to even see the same record as another user..(It's a long story)

    I am in a bit of a jam..I was thinking of writing a logic statement that would check to see if the record was in edit mode, and then to skip that record, but I have been unsuccessful...do not know exactly what object to use...

    ANY HELP?????

    Thanks!

  2. #2
    Hyperactive Member
    Join Date
    Mar 2002
    Posts
    424
    Well when a client opens a record you could log their current absolute position and skip that position for other clients.

    VB Code:
    1. Dim dbase As Database
    2. Dim recset As Recordset
    3.  
    4. Set dbase = CurrentDb
    5. Set recset = dbase.OpenRecordset("your query here", dbOpenDynaset)
    6.  
    7. If recset.AbsolutePosition = OtherClientPosition Then Gosomewhereelse
    8.  
    9. dbase.Close
    10. Set dbase = Nothing
    11. Set recset = Nothing

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