Results 1 to 4 of 4
  1. #1
    Mooresy is offline Novice
    Windows XP Access 2007
    Join Date
    Jul 2011
    Posts
    2

    Question Mail Merge Problems

    Hi,

    I'm looking for a bit of advice on a simple invoicing program i have started modifying. I'm an Access amateur and have done a bit of coding so know the basics.

    I had a few problems that ive managed to iron out. Theres only one issue now, word doesnt display the full currency.

    i.e.

    in Access - £199.99
    ~


    in Word - 199

    To my knowledge, i have tried and come to the conclusion that i am unable to use a Numeric Picture Switch as all this will do is round up and down which is not an option as prices must be bang on to the pence. I have read something about compatabillity issues between Office 02 and 07 and the solution was through DDE instead of OLE DB, can you advise me how i can force Word to use the DDE conn method so that all formatting is included??
    Last edited by Mooresy; 07-08-2011 at 05:35 AM. Reason: Problem changed, didnt think it necessary to post new topic.

  2. #2
    SoftwareMatters is offline Access VBA Developers
    Windows XP Access 2003
    Join Date
    Mar 2009
    Location
    Dorset
    Posts
    274
    You could format it as a string something like this:
    Dim MyString as String
    MyString = "£" & CStr(Format(nz([CurrencyField],0),"0.00"))

  3. #3
    Mooresy is offline Novice
    Windows XP Access 2007
    Join Date
    Jul 2011
    Posts
    2
    hi, sorry for the late reply been out of the office over the weekend. I can see how that would work and would like to give it a go, although as i said i'm a bit of an amateur! Where would i place the code? In the 'on_click' section of the 'print' invoices' button?

    Cheers,

    Adam

  4. #4
    SoftwareMatters is offline Access VBA Developers
    Windows XP Access 2003
    Join Date
    Mar 2009
    Location
    Dorset
    Posts
    274
    It would probably be best to add it to the query used by the mailmerge.
    So, open the query in design view.
    In the currency column you need to add this in the field row:

    ColumnName: "£" & CStr(Format(nz([CurrencyField],0),"0.00"))

    NB: you need to replace "ColumnName" with whatever name you want (this will be picked up in the mailmerge) and replace "CurrencyField" with the name of the actual currency field.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Mail Merge
    By sakhtar in forum Access
    Replies: 8
    Last Post: 09-20-2020, 09:10 AM
  2. Automated Mail Merge
    By celinae in forum Programming
    Replies: 1
    Last Post: 09-20-2010, 09:57 AM
  3. Mail Merge
    By Nixx1401 in forum Access
    Replies: 1
    Last Post: 02-15-2010, 10:51 AM
  4. Mail merge
    By grgerhard in forum Forms
    Replies: 0
    Last Post: 04-25-2006, 05:06 PM
  5. Mail Merge problem
    By kfergus in forum Programming
    Replies: 0
    Last Post: 04-24-2006, 01:06 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums