Results 1 to 4 of 4
  1. #1
    AccessFreak is offline Novice
    Windows XP Access 2007
    Join Date
    Dec 2010
    Posts
    17

    Wink Using ListBox value as "Body of outlook task"

    Using ListBox value as "Body of outlook task"


    Hi there

    I have inserted an "add outlook reminder" button to my database, this is working perfectly. Now, i would like the "body" of the outlook task to get its data from a list box on my reminders form

    it is currently getting the "body" from a text box on the reminders form, which works fine, but instead of the user entering the body, I would like the body to populate from a listbox (not a selected item in the list box, just every record in the listbox)

    is this possible?


  2. #2
    pbaldy's Avatar
    pbaldy is online now Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,530
    Sure; you would have to loop the listbox selections, like:

    For i = 0 To Me.ListboxName.ListCount - 1
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    AccessFreak is offline Novice
    Windows XP Access 2007
    Join Date
    Dec 2010
    Posts
    17
    Thank you for your reply. Where would this code go? In the .Body section of the Outlook Task Code?

  4. #4
    pbaldy's Avatar
    pbaldy is online now Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,530
    Well, you didn't post any code but I would use it to build a string that was eventually used for the body.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. ComboBox "Select" and "DLookUp"
    By witooldas in forum Forms
    Replies: 0
    Last Post: 03-23-2011, 03:31 AM
  2. "Group By" causes "ODBC--Call Failed" error
    By kaledev in forum Queries
    Replies: 1
    Last Post: 03-09-2011, 02:43 PM
  3. Replies: 3
    Last Post: 04-10-2010, 10:22 AM
  4. aSTR = Dir("C:\*.*") >> "Type Mismatch"
    By JGrant in forum Programming
    Replies: 1
    Last Post: 03-28-2009, 05:17 AM
  5. "Count" and "Countif" in Reports
    By JMantei in forum Reports
    Replies: 1
    Last Post: 06-20-2006, 02:20 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