Hi guys,
I have searched previous strings but i can't seem to find the answer i'm looking for. I'm sure its something simple though.
I am implementing a multi user version of our current application. In short i use the .seek method of DAO to find specific records. When i find the record i am looking for i want to save the bookmark value of that record. However when i assign the bookmark value to a variable all i get as a value is a square box symbol!? Here is the code
the LockDbRecord function simply writes a record to a lock table with the name of the table the bookmark is from and the bookmark value. The written record is useless however as the bookmark value i get is not correct.
I have two questions. Can bookmarks be used with the .seek method. I have read posts were people refer to populating records by doing a movefirst and movelast. However my recordset is just one record as it is created by a .seek.
Also i have seen code that refers to a recordset by using the keyword Me.bookmark. However when i try to do this the keyword Me is seen as refering to the current form and not the current recordset.
This is driving me crazy so any help would be very appriciated
Erin
I have searched previous strings but i can't seem to find the answer i'm looking for. I'm sure its something simple though.
I am implementing a multi user version of our current application. In short i use the .seek method of DAO to find specific records. When i find the record i am looking for i want to save the bookmark value of that record. However when i assign the bookmark value to a variable all i get as a value is a square box symbol!? Here is the code
Code:
entys.Index = "entity"
entys.Seek "=", value
'this records bookmark to be locked
lockUser = LockDbRecord(entys.bookmark, "entys")
If lockUser <> "Lock" Then
MsgBox "Locked", vbOKOnly
Unload Me
Exit Sub
End If
the LockDbRecord function simply writes a record to a lock table with the name of the table the bookmark is from and the bookmark value. The written record is useless however as the bookmark value i get is not correct.
I have two questions. Can bookmarks be used with the .seek method. I have read posts were people refer to populating records by doing a movefirst and movelast. However my recordset is just one record as it is created by a .seek.
Also i have seen code that refers to a recordset by using the keyword Me.bookmark. However when i try to do this the keyword Me is seen as refering to the current form and not the current recordset.
This is driving me crazy so any help would be very appriciated
Erin