[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.0

How do I fix "Unable to open" error working with Access 2007 attachments

Asked by jcutro1 in VB Database Programming, Access Coding/Macros

Tags: Access 2007 attachments

Windows XP SP3
Access 2007 Office SP1

I used code below to attach over 600 wav files of contemporaneous case progress dictation to records in my violence interruption database


Worked great for quite a while, except for occasional "Unable to Open" an attachment file, which a reboot would get things back on track.

Frequency of the unable to open increased over time, every once and a while I'd get one saying Windows media player (11) didn't have the correct codec, but still a reboot would fix.

Now the message comes up all the time and I can't summarize my field dictation responding to shootings, stabbings, etc.... so I can't bill for my consulting time without using other methods.  Since I have other workers on the street this gets cumbersome.

Tried:

Updating to XP SP3, no dice
Applying SP1 to the Office Suite
Rolling back Windows media player from 11 to 10 in case that was the problem
Compacting and repairing...

To simplify troubleshooting I created a very simple new Access 2007 database with just one table and a record with an attachment field.  Tried attaching Word, PDF and other types of files besides .wav, using the Manage Attachments dialog box, not VB code.  Same error message all the time.

Oh, also uninstalled my AVG free 8.5 virus checker, as some checkers are touchy about opening attachments.... no dice either.

I can use the Manage Attachments dialog to save an attachment back to a folder and it plays there.  I also noticed earlier in my troublshooting that sometimes when I did this the saved file was of zero length, but deleting the attachment field, re creating it and rerunning the code put the attachments back into the database for use, for a while, then they wouldn't open again, without reboot, then eventually not at all.

I tried putting some Locatelli Pecorino Romano grating cheese in a bag and swinging it around my head screaming like a cross between a chicken and Marlon Mumbles Brando in the Godfather but this only forced the squirrels living in my attic to meet to discuss if it was a safe to raise their children there anymore.

Any ideas?
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
Private Sub Command14_Click()
'select the currently open database
Set dbCurr = CurrentDb
'confirm it is the correct one
Debug.Print dbCurr.Name
'create a pointer to the recordings recordset
Dim rsRecordingz As Recordset
'open Recordingz recordset
Set rsRecordingz = dbCurr.OpenRecordset("Imported Recordings")
'loop through records and attach recordings
Do Until rsRecordingz.EOF
    Debug.Print rsRecordingz!WaveFileName & " "; rsRecordingz!TimeStamp
    'prepare parent record for operations
    rsRecordingz.Edit
    'instantiate child recordset
    Set rsRecord = rsRecordingz.Fields("Recording").Value
    'Add a new recording object
    rsRecord.AddNew
    'attach the .wav file in the folder to the record
    rsRecord.Fields("FileData").LoadFromFile "C:\Documents and Settings\Default\Desktop\YVIRC Recordings\" & rsRecordingz!WaveFileName
    'update child record
    rsRecord.Update
    'update the parent record
    rsRecordingz.Update
    'move to next parent record
    rsRecordingz.MoveNext
    Loop
End Sub
[+][-]04/27/09 04:21 AM, ID: 24240608Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zones: VB Database Programming, Access Coding/Macros
Tags: Access 2007 attachments
Sign Up Now!
Solution Provided By: TheVeee
Participating Experts: 2
Solution Grade: A
 
[+][-]04/24/09 04:55 AM, ID: 24224006Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04/24/09 06:38 AM, ID: 24224935Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04/24/09 06:45 AM, ID: 24225037Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04/24/09 07:28 AM, ID: 24225620Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04/24/09 10:34 AM, ID: 24227364Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04/24/09 10:41 AM, ID: 24227434Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04/24/09 10:44 AM, ID: 24227478Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04/24/09 10:51 AM, ID: 24227546Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04/24/09 11:05 AM, ID: 24227670Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04/24/09 11:18 AM, ID: 24227792Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04/24/09 01:37 PM, ID: 24228997Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04/24/09 06:45 PM, ID: 24230489Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04/25/09 04:32 AM, ID: 24231736Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04/25/09 04:33 AM, ID: 24231742Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04/27/09 05:09 PM, ID: 24246751Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04/27/09 05:18 PM, ID: 24246778Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04/27/09 05:24 PM, ID: 24246796Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-92 - Hierarchy / EE_QW_3_20080625