By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,972 Members | 1,092 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,972 IT Pros & Developers. It's quick & easy.

ODBC -- Call Failed.

P: n/a
Hi ive got an access database that has been working for ages but today
it has stopped working.

On a form i have a button that when clicked should print a report.

However, i get an error ODBC -- Call Failed.
The code for the button is

Private Sub AcceptPrintbtn_Click()
On Error GoTo Err_AcceptPrintbtn_Click

Dim stDocName As String

stDocName = "RPTAcceptanceLetter"
DoCmd.OpenReport stDocName, acPreview

Exit_AcceptPrintbtn_Click:
Exit Sub

Err_AcceptPrintbtn_Click:
MsgBox Err.Description
Resume Exit_AcceptPrintbtn_Click
End Sub

Any ideas??

Nov 13 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
<si************@gmail.com> wrote in message
news:11*********************@o13g2000cwo.googlegro ups.com...
Hi ive got an access database that has been working for ages but today
it has stopped working.

On a form i have a button that when clicked should print a report.

However, i get an error ODBC -- Call Failed.
The code for the button is

Private Sub AcceptPrintbtn_Click()
On Error GoTo Err_AcceptPrintbtn_Click

Dim stDocName As String

stDocName = "RPTAcceptanceLetter"
DoCmd.OpenReport stDocName, acPreview

Exit_AcceptPrintbtn_Click:
Exit Sub

Err_AcceptPrintbtn_Click:
MsgBox Err.Description
Resume Exit_AcceptPrintbtn_Click
End Sub

Any ideas??


What is the record source for the report? A query? Can you open it?
Whenever you get this sort of odbc error, you could quickly delete all
linked tables and re-create them from scratch. Does this fix it?
Nov 13 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.