Private Sub Command_Click()
On Error GoTo Err_Command_Click
Dim stDocName As String
Dim strwhere As String
stDocName = "LD CONTRACT"
strwhere = "hld_no=" & Me!HLD_no
DoCmd.OpenReport stDocName, acPreview, , strwhere
Exit_Command80_Click:
Exit Sub
Err_Command80_Click:
MsgBox Err.Description
Resume Exit_Command80_Click
End Sub