funkytunaa
Technical User
I've had no problem in the past merging information from an Access .mdb file but since upgrading to using a SQL back end and .adp file I can't seem to mail merge a single record, I can merge ALL the records but I need to merge just the current record.
In essence what I want to do is have a button to open word and use a temp table as the data source. Word though can't seem to see the information inside the Temp Table that is created as #temp.
This is what I use for creating the temp table.
DoCmd.RunSQL "SELECT * INTO #temp FROM [letterquery] WHERE [ClientID]=" & [Forms]![Menu Letters]![clientID] & ";"
Then I open the worddocument that needs merging and run the mail merge via VB. Though it doesn't work, in theory I think it should work.
Any ideas would be appreciated.
Also one of my main problems is that I have about 270 odd fields to merge so I have even gone through the export to excel thing and that doesn't work because of the field limit.
It's driving me nuts!!!!
Cheers
In essence what I want to do is have a button to open word and use a temp table as the data source. Word though can't seem to see the information inside the Temp Table that is created as #temp.
This is what I use for creating the temp table.
DoCmd.RunSQL "SELECT * INTO #temp FROM [letterquery] WHERE [ClientID]=" & [Forms]![Menu Letters]![clientID] & ";"
Then I open the worddocument that needs merging and run the mail merge via VB. Though it doesn't work, in theory I think it should work.
Any ideas would be appreciated.
Also one of my main problems is that I have about 270 odd fields to merge so I have even gone through the export to excel thing and that doesn't work because of the field limit.
It's driving me nuts!!!!
Cheers