473,698 Members | 2,491 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Need Help with Mailmerge to Word 2003

Some of our users have converted to Office 2003. Our Access app is in
2000. they run it in Access 2003 with Access 2000 as the default file
format.

When doing a merge from the partial code segment below, we had rec'd
the :
"Opening this will run the following SQL Command" message. We were
able to suppress that message with registry changes and code contained
in MSKB 82765.

However we are still getting the :
Select data source dialog box which asks the user to select the
datasource.

How can we suppress that dialog box ?

Bud

Set objWord = GetObject(strFi leLocation, "Word.Document" )
'turn off alerts
objWord.Applica tion.DisplayAle rts = wdAlertsNone
' Make Word visible.
objWord.Applica tion.Visible = True
' Set the mail merge data source as the OLF Front End database.
objWord.MailMer ge.OpenDataSour ce _
Name:="C:\my Documents\OurLa dy2000.mdb", _
LinkToSource:=T rue, _
Connection:=str Connect
objWord.MailMer ge.DataSource.Q ueryString
' Execute the mail merge.
objWord.MailMer ge.Execute
Nov 12 '05 #1
0 1292

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
4463
by: Allcomp | last post by:
Hello, I have a problem with a VB6 program that command a mailmerge with word object. The database is a MSDE Database. In the two cases, the server is the same The file c:\res.odc is empty (0 bytes), it is just here because Word want it to be there.
0
1334
by: dixie | last post by:
I have an application which does a lot of reports (letters) by automation with Word. The mail merge main document is a Word template and I transfer a text file out to a prenamed filename to act as the data source, then open a ..doc file from the template. The template has the name of the data file as its data source. All worked fine in Word 2000 and Word 2002, but all of a sudden, with Word 2003, I get an error message that says "This...
0
916
by: Bud Zielinski | last post by:
Some of our users have converted to Office 2003. Our Access app is in 2000. they run it in Access 2003 with Access 2000 as the default file format. When doing a merge from the partial code segment below, we had rec'd the : "Opening this will run the following SQL Command" message. We were able to suppress that message with registry changes and code contained in MSKB 82765.
2
4927
by: Bud Zielinski | last post by:
Some of our users have converted to Office 2003. Our Access app is in 2000. they run it in Access 2003 with Access 2000 as the default file format. When doing a merge from the partial code segment below, we had rec'd the : "Opening this will run the following SQL Command" message. We were able to suppress that message with registry changes and code contained in MSKB 82765.
9
4322
by: Neil Ginsberg | last post by:
I have a strange situation using Access to automate a Word mail merge. Using Access 2000 and Word 2000, the code opens Word, opens the document in Word, sets a table in the calling Access application as the data source, and then performs a merge. Everything works fine. However, when a user uses it in Access 2002 and Word 2002, an extra instance of the Access application is opened and remains open at the end. Sometimes it remains open
0
1398
by: Anne Richmond | last post by:
I have a Word(2000) mailmerge routine (code below) which works OK but always names the merged document "Forml Letters1". How do I change this to something else? Also how do I automatically save the merged document to a specific destination? Dim wrdApp As Word.Application Dim wrdDoc As Word._Document
0
921
by: Scott May | last post by:
I am doing a mailmerge from vb.net to word 2003. Everything works fine, but I add a fill-in field to the wrod document and then do a mailmerge the toolbars are missing. Can anyone give me a clue? Thanks Scott
2
3336
by: jojopangit | last post by:
hi, i have the following command and generated an error : "word was unable to open the data source" any help will be greatly appreciated. Thanks in advance. Jude Private Sub Command1_Click()
0
1295
by: mleerog | last post by:
Hope someone can shed some light on a tricky error. I am trying to automate a mailmerge in VB.NET using Word 2003. The main document is a previously existing Word file. The data source is a text file created by a separate Oracle SQL program. The main document is linked to the data source; if you open the main doc manually, you get the SQL security message for the name of the text file. When the program runs the OpenDataSource command for...
0
8608
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9029
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8897
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8867
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6522
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4370
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4619
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3050
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2332
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.