Solved

Using VBA to Set File Path and File Name in Web Pages in Order to Upload Data

Posted on 2014-04-14
1
663 Views
Last Modified: 2014-05-21
Have VBA code to logon and walk thru a password secured website the last  web page shows a dialog/text box and browse button, the input type of the text box is "file", so it will only accept input from the file browse there is also a transmit button to upload the file. I am unable to alter the webpage - it is a 3rd party page.
My problem is I am unable to programmatically  insert the path and filename of the file to be uploaded into the textbox.
need some helpscreen shot of webform to upload a file.
0
Comment
Question by:durick
1 Comment
 
LVL 34

Accepted Solution

by:
PatHartman earned 500 total points
ID: 40000422
Are you asking if Access can navigate to a web page and poke some data into a field and then press a button?  The answer is an unequivocal maybe.  Can you use the paste function of windows to populate the field?  If you can't, then Access won't be able to either.  If you can, I think you will need to figure out the name of the field and the name of the button.

It is pretty dangerous to try to paste data into a web page that you have no control over.  I would talk to the webmaster to find out if they have a service you can use instead.  That will make a cleaner, less likely to break, interface.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Today companies are subjected to more-and-more data, and it won't stop any time soon.  But there are obvious opportunities for reducing data, particularly data duplicated among companies.
A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now