|
-
Jul 10th, 2006, 08:09 AM
#1
Thread Starter
Fanatic Member
[RESOLVED] ms access/ vba display ms word preview window
I was wondering how could you display a preview window of an ms word document from within ms access application.
I'd like to create word documents based on variables from my access database without needing to go from ms access window to ms word windows which gets messy once you want to preview different word docs.
any ideas?
-
Jul 10th, 2006, 08:14 AM
#2
Re: ms access/ vba display ms word preview window
stick an unbound object frame in your form. Access will prompt you for what you want in it.. pick MS Word Doc...
does that help?
JPnyc rocks!! (Just ask him!)
If u have your answer please go to the thread tools and click "Mark Thread Resolved"
-
Jul 10th, 2006, 09:31 AM
#3
Thread Starter
Fanatic Member
Re: ms access/ vba display ms word preview window
sure, but how do you program the unbound object control to display a filename variable. meaning something like (this doesnt work) :
Private Sub Filename_Click()
me.unbound_object.SOURCEFILE = me.filename
me.unbound_object.requery
End Sub
-
Jul 10th, 2006, 09:57 AM
#4
Re: ms access/ vba display ms word preview window
couldnt get it to work either.. sorry. never tried it before.
JPnyc rocks!! (Just ask him!)
If u have your answer please go to the thread tools and click "Mark Thread Resolved"
-
Jul 10th, 2006, 09:58 AM
#5
Thread Starter
Fanatic Member
Re: ms access/ vba display ms word preview window
you can think of it better as a "MS Word File Viewer" - when you press a certain file name, this file content will show in the object frame.
any ideas?
-
Jul 10th, 2006, 10:04 AM
#6
Thread Starter
Fanatic Member
Re: ms access/ vba display ms word preview window
I don't think it should be with a unbound object ,but rather with a bound object. but question is how do you program a bound object?
-
Jul 10th, 2006, 12:07 PM
#7
Re: ms access/ vba display ms word preview window
You could import a richtextbox vb6 control to your access form but you would also need to distribute the ocx with yoiur db. Then you can display the document contents in the rtb.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Jul 10th, 2006, 02:34 PM
#8
Thread Starter
Fanatic Member
Re: ms access/ vba display ms word preview window
1. how do I import a control from vb6?
2. is there no way I can program a bound object control?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|