MS Office Forum / Word / Mailmerge and Fax / September 2005
Help using Access check box control in IF...THEN...merge field
|
|
Thread rating:  |
rbuzzell - 27 Jun 2004 22:27 GMT I recently upgraded from Office 97 to Office 2002. I have a large Access database which serves as a data source for several Word mail merge programs to generate reports. Some of the data fields use a form check box (YES/NO) control which are not merging correctly in If... Then... Else... merge fields. It worked in the 97 version using "Yes" = -1 and "No" = 0 (...I think). Since upgrading however, these merge fields no longer work. In version 2002, how do I configure: If <<mergefield>> is equal to (check box control field checked) "type this sentence" ""?
Thanks for any help, rbuzzell
Doug Robbins - Word MVP - 28 Jun 2004 10:41 GMT In Word, from the Tools Menu, selection Options and then on the General tab, check the Confirm conversions on Open box and when you connect to the data source, select the DDE method of connection.
 Signature Please post any further questions or followup to the newsgroups for the benefit of others who may be interested. Unsolicited questions forwarded directly to me will only be answered on a paid consulting basis.
Hope this helps Doug Robbins - Word MVP
> I recently upgraded from Office 97 to Office 2002. I have a large Access database which serves as a data source for several Word mail merge programs to generate reports. Some of the data fields use a form check box (YES/NO) control which are not merging correctly in If... Then... Else... merge fields. It worked in the 97 version using "Yes" = -1 and "No" = 0 (...I think). Since upgrading however, these merge fields no longer work. In version 2002, how do I configure: If <<mergefield>> is equal to (check box control field checked) "type this sentence" ""?
> Thanks for any help, > rbuzzell rbuzzell - 28 Jun 2004 23:31 GMT Thank you very much for your help. It solved the problem.
Thanks again, rbuzzell
> In Word, from the Tools Menu, selection Options and then on the General tab, > check the Confirm conversions on Open box and when you connect to the data [quoted text clipped - 11 lines] > > Thanks for any help, > > rbuzzell geisi - 13 Sep 2005 04:15 GMT when i merge a check box, i see the results as either -1 or 0 insted of a checked box or unchecked box, how do i correct this?
> In Word, from the Tools Menu, selection Options and then on the General tab, > check the Confirm conversions on Open box and when you connect to the data [quoted text clipped - 11 lines] > > Thanks for any help, > > rbuzzell Doug Robbins - 13 Sep 2005 05:18 GMT Use an If...then...Else field to insert the appropriate symbol from the Insert Symbols dialog depending upon a check of the value in the mergefield.
 Signature Hope this helps.
Please reply to the newsgroup unless you wish to avail yourself of my services on a paid consulting basis.
Doug Robbins - Word MVP
> when i merge a check box, i see the results as either -1 or 0 insted of a > checked box or unchecked box, how do i correct this? [quoted text clipped - 20 lines] >> > Thanks for any help, >> > rbuzzell geisi - 13 Sep 2005 18:33 GMT thanks for the quick response. I still have the problom, b/c the window does not allow me to insert any symbols in the proper place. (i can only input the keys that are on the keyboard)
Dave
> Use an If...then...Else field to insert the appropriate symbol from the > Insert Symbols dialog depending upon a check of the value in the mergefield. [quoted text clipped - 23 lines] > >> > Thanks for any help, > >> > rbuzzell Doug Robbins - 13 Sep 2005 22:57 GMT To start off with, put A and B as the results, then use Alt+F9 to toggle on the display of field codes and replace the A and B with the respective symbols.
 Signature Hope this helps.
Please reply to the newsgroup unless you wish to avail yourself of my services on a paid consulting basis.
Doug Robbins - Word MVP
> thanks for the quick response. > I still have the problom, b/c the window does not allow me to insert any [quoted text clipped - 36 lines] >> >> > Thanks for any help, >> >> > rbuzzell geisi - 15 Sep 2005 02:31 GMT Thnak you very much, that worked great!
Dave
> To start off with, put A and B as the results, then use Alt+F9 to toggle on > the display of field codes and replace the A and B with the respective [quoted text clipped - 40 lines] > >> >> > Thanks for any help, > >> >> > rbuzzell geisi - 15 Sep 2005 04:46 GMT New Question i have over 200 records, how can i sort them alphabetically after i sort them? (the records are added one at a time, so the record numbers are not sorted a-z)
Thanks Dave
> Thnak you very much, that worked great! > [quoted text clipped - 44 lines] > > >> >> > Thanks for any help, > > >> >> > rbuzzell Doug Robbins - 15 Sep 2005 05:03 GMT Use a select Query in Access in which you set the sort order for the appropriate field. Then use that query as the datasource.
 Signature Hope this helps.
Please reply to the newsgroup unless you wish to avail yourself of my services on a paid consulting basis.
Doug Robbins - Word MVP
> > New Question [quoted text clipped - 66 lines] >> > >> >> > Thanks for any help, >> > >> >> > rbuzzell geisi - 15 Sep 2005 06:19 GMT I hate to bother you, but the word documents are still sorting acording to the record number, and not the order in which i sorted the query.
Thanks Dave
> Use a select Query in Access in which you set the sort order for the > appropriate field. Then use that query as the datasource. [quoted text clipped - 68 lines] > >> > >> >> > Thanks for any help, > >> > >> >> > rbuzzell Doug Robbins - 15 Sep 2005 14:03 GMT Did you apply the sort in the Query definition. If you look at the SQL for the query do you see ORDER BY down near the end of the definition as in the following example
SELECT [Procurement Packages].PPID AS MRID, [Procurement Packages].[Package Number] AS MRNumber, [Procurement Packages].[Package Number] AS [PO Number], [Procurement Packages].Description, [Procurement Packages].Vendor1, [Procurement Packages].Vendor1Currency1, [Procurement Packages].Vendor1Currency2, [Procurement Packages].Vendor1Currency3, [Procurement Packages].Vendor1Origin, [Procurement Packages].Vendor2, [Procurement Packages].Vendor2Currency1, [Procurement Packages].Vendor2Currency2, [Procurement Packages].Vendor2Currency3, [Procurement Packages].Vendor2Origin, [Procurement Packages].Vendor3, [Procurement Packages].Vendor3Currency1, [Procurement Packages].Vendor3Currency2, [Procurement Packages].Vendor3Currency3, [Procurement Packages].Vendor3Origin, [Procurement Packages].Vendor4, [Procurement Packages].Vendor4Currency1, [Procurement Packages].Vendor4Currency2, [Procurement Packages].Vendor4Currency3, [Procurement Packages].Vendor4Origin, [Procurement Packages].Vendor5, [Procurement Packages].Vendor5Currency1, [Procurement Packages].Vendor5Currency2, [Procurement Packages].Vendor5Currency3, [Procurement Packages].Vendor5Origin, [Procurement Packages].Notes, [Procurement Packages].Strategy, [Procurement Packages].Unpriced, [Procurement Packages].RecommendedVendor, [Procurement Packages].Task1, [Procurement Packages].Task2, [Procurement Packages].Task3, [Procurement Packages].Task4, [Procurement Packages].Task5, [Procurement Packages].Current FROM [Procurement Packages] WHERE ((([Procurement Packages].Current)=Yes)) ORDER BY [Procurement Packages].[Package Number];
 Signature Hope this helps.
Please reply to the newsgroup unless you wish to avail yourself of my services on a paid consulting basis.
Doug Robbins - Word MVP
>I hate to bother you, but the word documents are still sorting acording to > the record number, and not the order in which i sorted the query. [quoted text clipped - 85 lines] >> >> > >> >> > Thanks for any help, >> >> > >> >> > rbuzzell Lyn - 28 Jun 2004 12:43 GMT I am not an expert, but I can tell you that a yes/no box in Access comes over to Word in the merge file as zero or 1 instead of yes no. So in your if then statement, be sure to reference zero or 1 for your conditions. Hope that helps!
>-----Original Message----- >I recently upgraded from Office 97 to Office 2002. I have a large Access database which serves as a data source for several Word mail merge programs to generate reports. Some of the data fields use a form check box (YES/NO) control which are not merging correctly in If... Then... Else... merge fields. It worked in the 97 version using "Yes" = -1 and "No" = 0 (...I think). Since upgrading however, these merge fields no longer work. In version 2002, how do I configure: If <<mergefield>> is equal to (check box control field checked) "type this sentence" ""?
>Thanks for any help, >rbuzzell >.
|
|
|