Results 1 to 6 of 6
  1. #1
    kasmax99 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Feb 2013
    Posts
    2

    Read GMail via VBA


    Hi Guys
    I have been trying to access gmail through vba in Access 2003. I can send an email from vba using CDO by using gmail account but i cant seem to find a way to read gmails email or download them in a table. i have searched quite a bit online but couldnt find any help.

    so has anyone done something to achieve this? either using CDO or any other way or trick.
    i will really appritiate the help.

    Thanks

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,970
    Google: VB read gmail

    This is complicated because must access Gmail through web browser so code must manipulate the browser in order to open Gmail website.

    Review: http://forums.techguy.org/business-a...pen-gmail.html

    Other hits are VB examples that appear to use an add-in. Don't know if adaptable to Access/VBA.

    This appears to offer a downloadable add-in at a cost:
    http://www.example-code.com/vb/pop3_gmail.asp

    Don't know if this has a cost:
    http://www.emailarchitect.net/forum/...?g=posts&t=235
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    redbull's Avatar
    redbull is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Mar 2012
    Location
    Missouri
    Posts
    480
    Quick question.

    You just want to pull the text out of a gmail email? What is the ultimate goal? is gmail already signed in? Are you logging into gmail using vba?

    Using the html reference library in access you should be able to navigate/read/write to internet explorer just fine. I have a few test databases I can mess with really quick to check the possibilities . Stay tuned.

  4. #4
    redbull's Avatar
    redbull is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Mar 2012
    Location
    Missouri
    Posts
    480
    So I looked at the code behind the window, this is going to be boarderline impossible....





    As you can see, they are using alot of frames. Frames are the bane of my existence. Now the code you are looking at is just ONE email. To avoid having to painstakingly write a HUGE amount of code, to account of each piece of mail in the box...

    I would consider forwarding your gmail mail to outlook. This would make the world a happier place.

    http://www.pcworld.com/article/20115...tlook-com.html

  5. #5
    kasmax99 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Feb 2013
    Posts
    2
    Hi Redbull
    Many thanks for your suggestion and looking into it. well my ultimate goal is to create an email inbox within access database. and yes i would use vba to login. the reason i cant use outlook is that many pcs in the enviro do not have outlook or cant be configured to gmail.

    ok will ive also been doing some work on it. what i have achieved so far is i have a access form and you click button and it reads gmail by logging in with vba with all user/pass etc details provided in vba. and since the browser display is set to invisible so the user dont see gmail opened in browser. then it reads the source of the logged in gmail page and pull out the emails. i have done most of it and by filtering text im almost getting all the email subject and sent from with time. but what i obeviously havent been able to do is getting the full msgs because they are not on the page.

    what i wana achieve finally is to create with access application a complete mailbox and a popup reminder that alerts you as soo as new mail arrives. its essentially to do all what outlook does but without the use of outlook and with the access application.

    so if you have some more thoughts than ill be happy to know.

    cheers

  6. #6
    redbull's Avatar
    redbull is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Mar 2012
    Location
    Missouri
    Posts
    480
    Wow, you made a ton of progress. Can you upload the file, of course remove the UID/PW. I have an idea for gathering the data out of the email, could even save email subjects/bodys to a table if you'd like.

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

Similar Threads

  1. MDB in Read Only, No .ldb, What to do
    By schwimms in forum Access
    Replies: 11
    Last Post: 02-25-2015, 03:12 PM
  2. sending gmail email through access
    By TheShabz in forum Programming
    Replies: 20
    Last Post: 02-19-2012, 12:24 PM
  3. Automating Access with Gmail
    By mdub in forum Programming
    Replies: 5
    Last Post: 12-07-2011, 07:32 PM
  4. form lost in gmail
    By vespid in forum Import/Export Data
    Replies: 1
    Last Post: 03-13-2011, 01:58 PM
  5. Replies: 2
    Last Post: 10-19-2006, 04:37 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