Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Not a valid bookmark! 2

Status
Not open for further replies.

kpryan

Technical User
Aug 24, 2005
282
US
Hi all you gurus,
This error came up on our database. Fortunately I had a backup
so no problems. Could not even compact or repair. What causes this error.

Many thanks,

Ken
 
How are ya kpryan . . .

When a form is opened & loaded, each record is asigned a [blue]BookMark[/blue] value. Also each time the form is opened, the bookmarks are never the same.

One way to goto a record is by manipulating the bookmark property of a form or recordset. [blue]The error is raised when the bookmark property assigned doesn't exits[/blue] . . .

Calvin.gif
See Ya! . . . . . .

Be sure to see thread181-473997
Also faq181-2886
 
Hi The Aceman1,

many thanks for your help.
Is this the forum to explain the latter part of you reply.. 'bookmark property does not exist.' How does this occur?
Or can you point me in the right direction to be able to follow this up.

Many thanks,

Ken
 
1) You may have some code that references the bookmark property for an object that does not have a bookmark property. So search your code for the word "bookmark" and post any code that references it.
2)Compile your code and see if it breaks any where
3)If not 1 or 2 then your database may be corrupted which can be caused by many things. Network, poor database design, access quirkiness:
 
kpryan said:
[blue] . . . 'bookmark property does not exist.' [purple]How does this occur?[/purple][/blue]
Almost invariably this occurs with recordsets. Consider for a form you perform the following:
Code:
[blue]   Dim rst As DAO.Recordset
   
   Set rst = Me.RecordsetClone[/blue]
Here the recordset bookmarks are a copy of the form bookmarks, so that:
Code:
[blue]   Me.Bookmark = rst.Bookmark[/blue]
Always works. However, if while both form and rst are active you requery either the form or recordset, the requeried object is assigned a different set of bookmarks. A miss match now exists.

Consider the above when you hold a bookmark for return to a record after requery!

Actually this idea of bookmarks as it relates to your problem is quite academic, as [purple]I'd expect you to get this error during design testing! This is an hardcore error that will always raise its head![/purple]

Since the Db was working and as you say . . .
kpryan said:
[blue]Could not even compact or repair.[/blue]
. . . along with . . .
MajP said:
[blue]3)If not 1 or 2 then your [purple]database may be corrupted[/purple] which can be caused by many things.[/blue]
. . . [PURPLE]Corruption[/purple] appears to be more the hardcore problem than any bookmark!

[blue]Your Thoughts? . . .[/blue]

Calvin.gif
See Ya! . . . . . .

Be sure to see thread181-473997
Also faq181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top