2/25/2024 0 Comments Nasa shop germanyIn my OneDrive Folder I loaded two files: Introducing a long delay or in the linking of the document (Access) or in the opening of document (word) doesn’t help. For the Document_Open routine there is no ActiveDocument opened. IF the file are opened from Access clicking in the BoundObjectFrame, Word will throw the error 4228 " The command is not available because the document is not open".IF the file are opened from Access through my code everything is fine.IF the file are opened from Word everything is always fine.The first way is Microsoft standard, the second one is via my code. Or using the command Button “ Open Present Doc”. The document can be opened or by right clicking on the BoundObjectFrame and the Linked Document Object and Open.The first Command Button “Add New Doc”, create a new Word Document, save it, put its name in FullName textbox and add it as new record.It has two text boxes (ID, FullName), one BoundObjectFrame, and two Comman Buttons. ![]() ![]() One form to create new documents, to show and open old documents.One table with only 3 fields: ID (autonumber), FullName (string), OleDoc ( OLE Object).Its Document_New and Document_Open have only one line: Debug.Print ActiveDocument.FullName. The Word Documents are based on a simple template called “ TestTemplate.dotm”. I have a very simple Access database to store Word Documents. I'm sorry if I’m asking again something I already asked without success in Access World.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |