database engine could not lock table?

darksniper

Registered User.
Local time
Today, 09:37
Joined
Sep 4, 2005
Messages
108
I have created a form, and added a button that would display the current record. When I click on the button I get "database engine could not lock table..." When I launch the report by it self, it open, but doesnt want to open through form button.
 
What code do you have for the button's click event?
 
Private Sub Command15_Click()
On Error GoTo Err_Command15_Click

Dim stDocName As String

stDocName = "rptlUserInfo"
DoCmd.OpenReport stDocName, acPreview

Exit_Command15_Click:
Exit Sub

Err_Command15_Click:
MsgBox Err.Description
Resume Exit_Command15_Click

End Sub

edit: that is the default code generated by ms access
 

Users who are viewing this thread

Back
Top Bottom