- Local time
- Yesterday, 23:38
- Joined
- Feb 19, 2002
- Messages
- 45,446
I have an application that populates bookmarks in a Word document. The app works fine on my PC but not on the client's. I'm using the O365 subscription slightly behind the bleeding edge. Client has a 2019 boxed version. Both are 32 bit
The error is 5941 -Requested member of collection does not exist
The code stops at:
WordDoc.FormFields("Salutation").Result = rsDAO!Salutation
The error is with the formfield. The Salutation bookmark exists and Word seems to see it when I open the document. The document works fine when I run it on my PC.
When I skip over all the population code, the automation finishes and displays the document. Of course, none of the fields are populated. So, yes the document exists. Yes, I have opened the correct document. Yes I can see the bookmarks when I open the document in Word. I just can't get Access to populate the bookmarks. I tried to print the current contents and get the same error, so I can't view them or update them.
Could this be a manifestacion of a security error?
I made the drive that holds the app a trusted location for both Word and Access but that didn't help so if it is security, I probably need to get their IT support to fix it for me.
Google hasn't been helpful. All the responses are for code running within word and seem to relate to some review setting which is of course not showing in any of my menus so who knows what version the posts relate to.
The error is 5941 -Requested member of collection does not exist
The code stops at:
WordDoc.FormFields("Salutation").Result = rsDAO!Salutation
The error is with the formfield. The Salutation bookmark exists and Word seems to see it when I open the document. The document works fine when I run it on my PC.
When I skip over all the population code, the automation finishes and displays the document. Of course, none of the fields are populated. So, yes the document exists. Yes, I have opened the correct document. Yes I can see the bookmarks when I open the document in Word. I just can't get Access to populate the bookmarks. I tried to print the current contents and get the same error, so I can't view them or update them.
Could this be a manifestacion of a security error?
I made the drive that holds the app a trusted location for both Word and Access but that didn't help so if it is security, I probably need to get their IT support to fix it for me.
Google hasn't been helpful. All the responses are for code running within word and seem to relate to some review setting which is of course not showing in any of my menus so who knows what version the posts relate to.