My Buttons will NOT work

klr397

Registered User.
Local time
Yesterday, 17:01
Joined
Dec 13, 2005
Messages
30
I am not completly access challenged i have programmed myself many a successful button. Please someone tell me why i would get this message:

The Expression On click you enteresd as the event property setting produced the following problem occured while Microsoft office access was communicationg with the ole server or active X control.


This is my code. for command0

Private Sub Command0_Click()
On Error GoTo Err_Command0_Click

Dim stDocName As String
Dim stLinkCriteria As String

stDocName = "SNF"
DoCmd.OpenForm stDocName, , , stLinkCriteria

Exit_Command0_Click:
Exit Sub

Err_Command0_Click:
MsgBox Err.Description
Resume Exit_Command0_Click

End Sub

___________________________________________________________

What am I doing wrong?
 
The code looks ok to me, have you tried a compact and repair on the DB in case there is some sort of corruption?

Peter
 
can you zip and post your database? It has to be 393Kb or less after zipping to post here. Otherwise we can PM you with my email address to send it to me.
 
KT,
I've seen this error but can't remember what it takes to correct it. Take Bob up on his offer to look at the db. He knows his stuff! If you can post it here, I'll look at it too.
 
The database has been corrupted. Create a new, empty database and import all the objects.

Dave

PS:And backup regularly!
 
The Expression On click you enteresd as the event property setting produced the following problem occured while Microsoft office access was communicationg with the ole server or active X control.

communicationg... there's the problem :D
 

Users who are viewing this thread

Back
Top Bottom