Click here to Skip to main content
15,887,822 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Is there any suggestions or links that i can use in order to create such a thing? I have a Form with a lot of textboxes and comboboxes in which when you enter a criteria inside those textboxes and select a criteria from the comboboxes gets saved to an ACCESS Database. however, i want to have something which will allow the user to save an attachment and save the attachment to the database on the click of a button. Can someone please help me with this as i did a lot of search but found absolutely nothing.

What I have tried:

I tried googling but i am running out of ideas and not sure what to do.
Posted
Updated 15-Aug-16 7:34am
Comments
[no name] 15-Aug-16 11:36am    
Do you mean a Form that supports Drag-N-Drop functionality?
JT1992 15-Aug-16 11:37am    
yes and even a file upload feature if thats possible.
Richard MacCutchan 15-Aug-16 12:27pm    
Your question is tagged VB and Windows so where are you planning to upload a file from or to? I have a feeling that your question needs to be made more clear.

First of all learn how to handle a file that is moved to your Form via Drag-And-Drop. The tutorial below explains how to get the name, path etc. from the respective file.
Implementing Drag and Drop in Visual Basic .NET[^]

Once you got it, learn how to upload files to the Database.
Uploading Files to a Database in VB - DB Tutorials | Database Tutorials, Tips, and Articles[^]
 
Share this answer
 
Comments
JT1992 15-Aug-16 13:35pm    
you rock thank you will accept this solution as soon as i am able to get this done.
What exactly do you mean by "saving an attachment"? If you mean saving a file to be associated with some database record, then it is a simple matter to copy the file to some fixed location, and save the location details in the database.
 
Share this answer
 
Comments
JT1992 15-Aug-16 11:38am    
is there a code example that i can use for this?
Richard MacCutchan 15-Aug-16 11:43am    
Are you saying that you do not know how to copy a file, or insert/update the database?
JT1992 15-Aug-16 12:11pm    
i am not sure how to do this.
Richard MacCutchan 15-Aug-16 12:25pm    
JT1992 15-Aug-16 12:27pm    
but is there a feature or tool that i need to use from the toolbox in order to do so?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900