We help IT Professionals succeed at work.
Get Started

Upload File and Insert Record into Database  - 2 Actions with 1 Button

FSAAdmin asked
Last Modified: 2012-05-10
I've seen similiar questions throughout the web but I'm still struggling with this one.

I have a form where a user supplies information and then can brows to for a file to upload if needed.

I'm using CS4 and ASP with access db (users choice).  I have successfully created the form which stores the path/filename in a text field in the database on the insert record server behavior.  However, i have not been successful at uploading the file to the server first.  I would like the user to only have to browse for the file once and have the submit button upload the file and insert the record if possible.

I have read and tried using Free ASP Upload.  I can get the upload to work fine.  But the upload and insert record are not working togther.  

Can someone help me get these two actions done with one Submit Button please?
Watch Question
Project Manager
This problem has been solved!
Unlock 4 Answers and 39 Comments.
See Answers
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE