Results 1 to 6 of 6
  1. #1
    themushroomking is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2016
    Posts
    23

    Cool Copy values from Access form to online webpage form

    Hi there folks! Trying to be innovative here but it wont budge. :S


    At work we have an Access database. At the end of the day, they need to copy some of the data to an online web form manually. (NOTE: We can not do anything about this in any way! Customer website)
    Instead of doing this manually, i would like to post the values from my form, to the webform. This shouldnt be too difficult as i know what the fields are called in the webform.

    Currently i have a form with a "web browser control" (browser) window.
    In the same form i have a field (field1).
    I have a button (button1).
    The fieldname in the webform is called (text1).

    The event procedure of my button is:
    Private Sub button1_Click()
    browser("text1).Value = field1
    End Sub


    Im not an expert so bare with me here. Can anyone point me in the right direction here?


    Currently its not working. Type mismatch. (i figured it wouldnt work) ALL HELP IS WELCOME!

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,921
    Example from my project:

    Code:
            'open ASTM/AASHTO test standards website and pass agency username/password to the web page
            Dim oBrowser As InternetExplorer
            Set oBrowser = New InternetExplorer
            oBrowser.Silent = True
            oBrowser.Navigate "https://login.ihserc.com/login/erc?"
            oBrowser.Visible = True
            Do
                'Wait till the Browser is loaded
            Loop Until oBrowser.ReadyState = READYSTATE_COMPLETE
            oBrowser.Document.all.Item("subAcctLoginName").Value = "user"
            oBrowser.Document.all.Item("subAcctPassword").Value = "password"
            oBrowser.Document.all.Item("Submit").Click
    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
    themushroomking is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2016
    Posts
    23
    Hi June7 . Thank you so much for the reply. Im struggeling still with this.

    Your code looks simple but effective. Awesome!

    I just dont get it to run :S. I put this code on Form Load event?? Or a module?
    Is there anything else i should add somewhere? I added Microsoft internet controls to my references. But thats it.

    Thanks in advance for your help and patience

  4. #4
    orange's Avatar
    orange is online now Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,725
    If you post your code or database, you might get more focused responses.

  5. #5
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,921
    My code is in a button Click event. And yes, reference the Internet Controls library.
    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.

  6. #6
    themushroomking is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2016
    Posts
    23
    Terrific June7! It's working! Thank you so very much. Youre a life saver.

    SOLVED >>> For anyone interrested: (ill keep it neutral and easy)


    Private Sub button_Click()
    Dim oBrowser As InternetExplorer
    Set oBrowser = New InternetExplorer
    oBrowser.Silent = True
    oBrowser.Navigate "https://www.roboform.com/filling-test-all-fields"
    oBrowser.Visible = True
    Do

    Loop Until oBrowser.ReadyState = READYSTATE_COMPLETE
    oBrowser.Document.all.item("01___title").Value = Me.FormField1
    oBrowser.Document.all.item("02frstname").Value = Me.FormField2
    'oBrowser.Document.all.item("Submit").Click
    End Sub

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

Similar Threads

  1. Replies: 1
    Last Post: 03-07-2017, 06:32 AM
  2. Add Access form on a webpage
    By nm5.0 in forum Forms
    Replies: 0
    Last Post: 12-15-2016, 10:44 AM
  3. Make MS Access Form Online and viewing in browser
    By pritesharyan in forum Access
    Replies: 4
    Last Post: 03-22-2015, 11:30 AM
  4. Replies: 2
    Last Post: 05-28-2013, 12:32 PM
  5. Exporting Form in Access to Webpage
    By StarrySky in forum Forms
    Replies: 0
    Last Post: 03-14-2010, 11:14 AM

Tags for this Thread

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