Mail merge doesn't see all records in Access query

Office 13 running on Win 8.1.
I have a query in Access that show 4 records when I run it. If I specify this query as my data source (select recipients) and then choose to edit the recipient list, there are only two records! The query in Access looks like this:
SELECT Membership.[m-nbr], Membership.[m-first], Membership.[m-member-since], Membership.[m-pick], Contact.[c-zip], Regions.[r-region-name], Regions.[r-region-director], Regions.[r-region-email], Membership.[m-member-since], Associates.[a-first-name], Associates.[a-id]
FROM ((Membership INNER JOIN Contact ON Membership.[m-nbr] = Contact.[c-nbr]) INNER JOIN (Regions INNER JOIN [Region/State] ON Regions.[r-region] = [Region/State].[rs-region]) ON Contact.[c-state] = [Region/State].[rs-state]) LEFT JOIN Associates ON Membership.[m-nbr]
= Associates.[a-nbr]
WHERE (((Membership.[m-pick])=True) AND ((Associates.[a-id]) Like "*A" Or (Associates.[a-id]) Is Null) AND ((Year([m-member-since]))=Year(Date())))
ORDER BY Contact.[c-zip]; 
If I remove this part: "((Associates.[a-id) Like "*A" Or (Associates.[a-id] is Null AND" then all 4 records show up in the recipient list.
In short, members can have multiple associates, but only the"A" associate is to be included in this letter. (associates have the same number as the member, with an a,b,c etc. appended. A member number could be 8741 and an associate number 8741A. 
Why is this happening? Thanks, ~Steve
Steve Woodward

Hmm, I tend to work in SQL mode when creating queries in Access - in that case, it doesn't change what you write. But I see that in the tabular Design mode it does change to ALIKE and that it works OK - something I wasn't aware of. I read that ALIKE is supposed
to allow "%" and "_" even when the database is in "Jet mode. 
FWIW in ANSI mode, I would not expect LIKE "%a" to work in Access but it should work from OLE DB
But in any case, it still works OK here, so still not sure what is wrong.
As a workaround, it might be necessary either to export the query results from Access, then use the exported data as your source, use the query to create a new table and use that as the data source, or connect using DDE (to do that, in Word, you have to
check Options->Advanced->General->Confirm file format conversion on open. Then go through the connection process again and select the .accdb/.mdb. If it's a .accdb, you will have also have to check "Show all" when you get to the "Confirm Data Source"
dialog box. At that point, you need to select the "MS Access Databases via DDE" option from the list (even if you have a .accdb, which isn't listed in the file types for that connection method).
All of these approaches have their disadvantages (e.g. DDE may not connect easily and probably won't return Unicode data correctly) but may at least give you another avenue of investigation.
Peter Jamieson

Similar Messages

  • Mail Merge doesn't send, just makes Template

    I was able to successfully create messages before that would send or be saved to my Drafts folder, but now it doesn't work. I haven't changed any settings since the successful mail was sent. I am using "{{...}}" for all variables, and they are exactly as I have them in the .csv file I have made as a source. For the "To:" field I even tried "<{{Email}}>" but it did not work. Included is a screenshot of my current setup
    Thank you for your help!

    add-ons are supported by their author.
    What I know of the mail merge add-on most issues are caused by spaces in the field names in the CSV file. "TO: " is not the same as "TO:" (I have used quotation makes to illustrate the space)

  • Itunes doesn't see all the data on all my albums

    I'm not sure if it's something I'm doing wrong, or what. I've got about 10GB of MP3's on my computer, when I open them on Windows Media Player or windows explorer I see all the info; album, artist, genre, everything, for all my files. when I add the files to itunes, I only get the info on about half the files, the rest just show the file names, but none of the other info. makes it hard to sort the files out, especially since itunes doesn't give you the option to see the file paths. of course since I didn't import the songs using itunes, it won't get the info from the internet.
    any ideas?

    First off, I would STRONGLY suggest that a external hard drive would make you life much easier by at least being able to back up your songs on the external drive for when you need them. Even if you don't want them in the iTunes library, you can have them all ready on the external to be re-added as needed. You can get 100's of gigs for under $100 shipped.
    Anyway, since you used Yamipod, are all the songs back on the computer? If so, I would go ahead and restore the iPod, let iTunes then resync everything back to the iPod, then switch it back to manual and see if the restore and resync clears up the issue.
    Patrick

  • Need to see all records stored in a file

    Hello
    I have a simple question about ObjectOutputStream and ObjectInputStream.
    I have a Person class which contains infomation about a person
    When the user presses the savebutton I need to write this to file
    ***SAVEBUTTON******
    p.setName(nameTextField.getText());
    p.setAge(Integer.parseInt(ageTextField.getText()));      
    writeRecord(p);
    ***WRITERECORD***'
    openW();
    outFile.writeObject(p);
    outFile.flush();
    ***READRECORD*******
    p = (Person)inFile.readObject();           
    nameTextField.setText(((Person)p).getName());
    ageTextField.setText(new Integer(((Person)p).getAge()).toString());
    inFile.close();
    I have a read button which must show all records in my textfields.
    Pressing the read button should show the first person and then the second etc.
    But it seems that I can only see the last record entered.
    So the question is how to be able to solve this in the best way.
    Should I use an array to somehow solve this or how do I see all persons one by one?
    THANKS

    I don't see a reference to the number of records you are processing nor a reference to the amount of resources on the client side or any business rules implementations. Those may have bearings on how you choose to iimplement your display model.
    generally speaking -- when dealing with 10's of thousands or more, I prefer to use database with ResultSets and some type of caching scheme, when using small amounts of data, then you have the luxury of making in memory structures for your entire set.

  • ITunes doesn't see all photos in Adobe

    Have 60GB iPod. 28GB music. I'm using iTunes 5.0 and Adobe Photoshop Elements 3.0. I have 11,000+ photos so I've created three collections in PSE with 50, 300 and 900 photos in each. Syncing iTunes to these three collections, iTunes only sees 475 photos in one collection, 3 in another and zero in the third. It only syncs the found 478 photos. Why doesn't it see all of the photos in the three collections? I have deleted the iPod Cache folder then re-synced and this did nothing.

    From Germany with not perfect English:
    I had similar problem. Files that were not transferred had either no file-ending (.tif and .jpg-files without these endings are not synct) or a wrong ending (.pdf for example).
    And the Apple-Hotline told me, a next iPod-software-update would allow a better sorting photos on the iPod. (Actually you can not use folders in folders, and all Photoes are sorted by date; a little help may be a count-number at the beginning of the file-name: 01.... 02.... 03... This helps, however it is not a good work for so many photos as you have.)

  • Mail merge doesn't work according to the instructions

    I have Microsoft office 2007 and I am trying to do a mail merge. I am following the Mail merge wizard and all the steps are working fine until I get toward the end (step 4 of 6). Under replicate labels, it says 'you can copy the layout of the first label
    to the other labels on the page by clicking the button below'. I click on the button which says 'update all labels' and out of the 30 potential labels on the page, only the first 3 and the last 2 get formatted. When I preview the labels, I find that indeed,
    only the first 3 labels and last two labels on each page have names and addresses in them.
    I have repeated the process, trying to make sure I am following the directions closely, but I get the same result. I have tried to do the steps independently of the mail merge wizard, just by following the steps in one of the forums, but I also get the same
    result. 
    What am I missing? HELP!

    Nobody?

  • HT5361 Some of my email comes into "Inbox" but not all of that is reflected in "all Mail" so I have to check Inbox, All Mail and Spam to see all of my mail.  Also when I delete from All Mail it all pops back up again when I reopen it.  What to do?

    My goal is to get all incoming mail in the Inbox - and all deleted mail in the Trash...All mail seems to be redundant and causes duplication and confusion. 

    Information.
    Gmail with Apple Mail
    Gmail with Apple Mail (2)
    Gmail with Apple Mail (3)
    Gmail with Apple Mail (4)

  • Itunes doesn't see all contact folders

    When I try to configure the sync parameters fro outlook contacts I can not see all contact folders

    From Germany with not perfect English:
    I had similar problem. Files that were not transferred had either no file-ending (.tif and .jpg-files without these endings are not synct) or a wrong ending (.pdf for example).
    And the Apple-Hotline told me, a next iPod-software-update would allow a better sorting photos on the iPod. (Actually you can not use folders in folders, and all Photoes are sorted by date; a little help may be a count-number at the beginning of the file-name: 01.... 02.... 03... This helps, however it is not a good work for so many photos as you have.)

  • AEx doesn't see all of my files

    Hi, I installed an Airdisk yesterday. It's a 1TB Seagate Freeagent formatted in FAT32 with 840GB in a folder called itunes files\lossless. It's assigned as the Z: drive on both my Windows XP machines. That folder contains subfolders for each artist (1395) and below that by album (2700).
    First machine worked fine. It saw all and added all the files to itunes.
    Second machine added only half the files to itunes. When I look at the z:\itunes files\lossless directory, it only shows the folders it added, i.e. it's missing half. If I enter one of the "missing" folder names in explorer, it comes up, and can play the files in it, but it still doesn't show in the directory. Because it doesn't show all my files in the directory, itunes won't add them.
    Currently, the first machine shows the same subset of my files. It still plays all of them through iTunes. The files are in place, the pointers in itunes are correct, but the directory doesn't show all the folders/files.
    I have renamed the drive and reset the AEx, but it still shows the same subset of my files/folders.
    How can I get all my files recognized?

    It's not a time issue. The directory loaded, just many of the files weren't there. This was on two pc's and one mac.
    What do you mean enabling NTFS? I had a two hour service call that came down to Airport not recognizing NTFS.
    I solved the problem by taking the drive off the airport and connecting via USB to a pc, creating a new directory, moving the files to the new directory. Voila, all there. Just had to load them to itunes which was actually a real pain on the mac, as it got overloaded and slowed to a crawl--would have taken a couple of weeks at the rate it was going. I had to manually add a bit at a time to get it to work. Ugh. Will have to again if the Airdisk flakes out again.
    Very dissatisfied.
    Plus, today I attached my portable WD MyPassport (also FAT32) to the USB hub on which the other drive sits, and the Airport went bonkers, unable to hold a connection (wired or wireless) with mac or pc, and bluescreened my XP laptop when I tried to rut Airport Utility.
    This is a product that does not do what it claims, in my experience so far.

  • Returning all records for a query

    Hi,
    still working on this library. I have the majority of it working (not pretty but it works). One problem I have run into is that when I query an authors name I would like all records for that author to be shown. However, it is only showing the final record.
                   public void Search_a()throws Exception{
              String S_author1 = JOptionPane.showInputDialog(null,"Please enter the authors name");
                   String query = ("select * from library where Author=('"+S_author1+"')");
                   ResultSet rs = db_statement.executeQuery(query);
                   while (rs.next()) {
                  String s = rs.getString("Author");
                  output.setText(rs.getString("ISBN")+"\t"+rs.getString("Title")+"\t"+ s +"\t"+ rs.getString("Publisher")+"\t"+rs.getString("Genre")+"\t"+rs.getString("Details")+"\n");
              }//end while
         }// end search_aI cannot see where the error is. I think maybe I am overwriting the previous records but thought that the inclusion of +"\n" would force each result to a new line.
    Any ideas?

    Thanks for that. Not really sure how I would implement that (new to programming) but I have managed to solve it using               output.setText(output.getText()+rs.getString("ISBN")+"\t"+rs.getString("Title")+"\t"+ s +"\t"+ rs.getString("Publisher")+"\t"+rs.getString("Genre")+"\t"+rs.getString("Details")+"\n");Thanks for the reply though.

  • Mail merge asking permission to "allow" word to access outlook

    While sending emails using mail merge feature, word file asking permission "allow" to access outlook. I understand it is related to virus protection setting. Where would those permissions be set?
    Secondly how many emails can be sent using mail merge feature?

    These warnings started popping up on my system after installing a utility which synchronizes my Outlook Contacts with Google Contacts.
    Fortunately, I found a safe way to
    eliminate the warnings from Outlook, while keeping it protected from malware. It turned out the warnings were not caused by that utility itself. They occurred because
    Outlook, for some reason, was not (yet) recognizing my anti-virus program as valid.
    Here's how I solved it.
    1) Open Outlook 2010, go to "File/Options/Trust Center" menu item, and then click on the "Trust Center Settings" button at the right side of the dialog box.
    2) From there, select the "Programmatic Access" menu item. At the bottom of this dialog, note what your "Antivirus status" is. If it is "Invalid" then close Outlook, navigate to where its "OUTLOOK" program
    icon is on your disk (typically it sits in the "Program Files (x86)/Microsoft Office" folder), and then right-click this icon and select "Run as administrator" from the pop-up-menu. If you get a warning, then select "allow" or "yes" to continue.
    3) Then in Outlook, go back to Programmatic Access as described above, and you should see your antivirus status updated to "Valid" (assuming you have an up-to-date antivirus program on your computer).
    4) Exit Outlook. Then open it the way you usually do. The warnings should now be gone.
    This way, your Outlook application will be protected from malware, and you should no longer see warnings when other applications try to access Outlook.

  • Count all records in a query

    Hi all,
    I have a query for debtors. This query is working fine. In query output, I just want a number that contains total no of records present in a query. How can i do that? Is that possible in BI??
    Regards,
    Aisha Ishrat
    ICI Pakistan Ltd

    Just create a New formula in the querry and put in the formula... in the result column u will get the desired out put....
    Khaja

  • Display count of all records in a query on VC

    Hi all,
    I have a query for debtors. I want that on VC, only the no of document present in that query should be displayed instead of all documents in a chart or table. Is that possible on dash board? If yes then how??
    Regards,
    Aisha Ishrat
    ICI Pakistan Ltd.

    If it's an SQL query then do a: "select count(*) from table_debtors where ......"
    Or you can use the Sigma operator. Just add this between your data source and the output table. When configuring the operator choose "count" for the fields.
    Henning
    Edited by: Henning Strand on Jan 22, 2008 8:04 AM

  • Junk mail filter doesn't work all the time

    Why doesn't the Junk mail filter work all the time? I click on mail like from Best Buy or Omni Hotels to go into junk mail but hardly any of their mail goes into Junk. Other sites go directly to Junk. If I click on a Best Buy mail to indicate it's Junk, shouldn't that work 100% of the time forever and ever?

    The Junk filter is based on an analysis of the content of the message. It ignores the sender. (Filtering based on the sender is an ineffective way of dealing with true spam, since spammers use constantly-changing spoofed addresses.)
    If you don't want mail from a legitimate sender like Best Buy, unsubscribe from their ads. If that doesn't work, make a Rule to delete or move the messages.

  • Itunes library doesn't see all the songs on my ipod

    i manage my music manually as i have more disc space on my ipod than on my hard drive. so i just add stuff to my ipod one album at a time as i get it.
    fast forward to me wanting to make a mix cd of the stuff on my ipod, and since i can't get any of the songs off my ipod through itunes i just used yamipod to move them back to my computer to burn to a cd. problem now is that all the music i've added since upgrading to the new itunes isn't showing up on my ipod, yet the space is still gone. when i use windows to search for the music, it shows up and will play in windows media player, but the ipod seems to think these songs are gone.
    is there any way to get it to "see" these songs? or does itunes JUST look at the db file ONLY?
    TIA!!

    First off, I would STRONGLY suggest that a external hard drive would make you life much easier by at least being able to back up your songs on the external drive for when you need them. Even if you don't want them in the iTunes library, you can have them all ready on the external to be re-added as needed. You can get 100's of gigs for under $100 shipped.
    Anyway, since you used Yamipod, are all the songs back on the computer? If so, I would go ahead and restore the iPod, let iTunes then resync everything back to the iPod, then switch it back to manual and see if the restore and resync clears up the issue.
    Patrick

Maybe you are looking for

  • Backup to my Nas suddenly fails

    Timemachine has been running successfully for a couple weeks. Suddenly it stopped working. Target is a qnap TS-239 pro II  with version 4.0.3 of the firmware on it, supposedly working as a timemachine target for mavericks. Well it was, untill now. Fi

  • Problem in Blazeds with Jboss Clustering ( Mod_JK with SSL )

    Hi,      We are running our flex application in jboss clustering environment with the help of Apache mod_jk(Apache Web server as front end with mod_ssl enabled). We are using the SecureAMFChannel as we deploy the application in SSL. We use the Remote

  • Stream from Thunderbolt to TV

    I'm using a MacBook Pro 8.2 and want to stream video to a Sony Bravia TV. I've connected them with a cable from the Thunderbolt port to the HDMI port on the TV. I bought the cable for this purpose at an Apple store ans was toldit would work. But now

  • Materialized view issue with spatial index and UNION all.

    Hi guys, I'm trying to build the following materialized view: create materialized VIEW MV_ElectricalStuffs   refresh fast   AS   SELECT jb.ROWID,     jb.FID,     JB.NAME_NUMBER   FROM EL_BUS_BAR jb   UNION ALL   SELECT INC.ROWID,     INC.FID,     NUL

  • Manager extending user End Date

    I am trying to create a new form in OIM for internal purpose so that a user who is a Manager for other users can go in and change user's end date. He should be able to see only users who he is a Manager of. So I cannot give him access to Users Manage