473,387 Members | 1,493 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

File Import Question

Hello I have written an internal help desk program in MS Access 2k3 and
the client has asked that I add the functionality to allow end users
the ability to click on a command button and have a prompt appear to
allow attachments to be saved and associated with a specific ticket.
I am looking for advice on the best approach to this. There is also
another potential complication in that there will not be a single
filetype that would be uploaded. The customer wants the end user to
have the ability to upload txt, html ,doc,msg , xls, etc. I would like
to have this done so that the user simply has to select the file
location, highlight the file and click ok and it's associated with the
ticket and then the help desk staff see something akin to a hyperlink
that they can click on to pull up the file. I am essentially looking
to be pointed in the direction of the best approach and then I should
be able to figure it out from there...I think.

Any help would be most appreciated.

Thanks,

Daniel Hidalgo

Nov 13 '05 #1
2 1090
"Hdawg" <hd*****@gmail.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
Hello I have written an internal help desk program in MS Access 2k3 and
the client has asked that I add the functionality to allow end users
the ability to click on a command button and have a prompt appear to
allow attachments to be saved and associated with a specific ticket.
I am looking for advice on the best approach to this. There is also
another potential complication in that there will not be a single
filetype that would be uploaded. The customer wants the end user to
have the ability to upload txt, html ,doc,msg , xls, etc. I would like
to have this done so that the user simply has to select the file
location, highlight the file and click ok and it's associated with the
ticket and then the help desk staff see something akin to a hyperlink
that they can click on to pull up the file. I am essentially looking
to be pointed in the direction of the best approach and then I should
be able to figure it out from there...I think.

Any help would be most appreciated.

Thanks,

Daniel Hidalgo


The question of how to retrive the full path of a file selected by pressing
a button, must have been answered many thousands of times, so leaving that
detail to one side, it seems to me that the next question is 'do I store the
filename in a database table?'
In my opinion, it would be better to simply have a storage area for these
documents, and each ticket number would have its own folder, e.g.
C:\HelpDesk\Tickets\T1000001\
C:\HelpDesk\Tickets\T1000002\
C:\HelpDesk\Tickets\T1000003\
The advantage of this approach, is that you do not have to synchronize table
entries with actual files which get moved, deleted or re-named. The down
side is that coding complexity increases somewhat.
Anyway, have you thought about your general strategy?
Nov 13 '05 #2
I have this exact functionality in a database that tracks income tax
audits. The user clicks a button, selects a file, enters a breif
description of the files, and viola. The file is copied to an
"attachments" directory (a subdirectory in the "backend directory") and
the path is stored in the database. I decided to generate the file
names on the fly to prevent duplicate file names, and to also remove
any meaning from the file name itself (that's what the description is
for.)

Send and email to j[deleteme] meredith AT g MAIL dot COM and I'll reply
with the code and instructions.

Johnny

Nov 13 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: David Berry | last post by:
Hi All. I'm looking for any help or sample code that can show me how to make a file import wizard in ASP.NET (VB preferred) like the one that MS Access uses. I'm working on a web site where the...
1
by: drb | last post by:
Hi, Newbie question #2 - hope that's OK! I'm trying to create a WSDL file using one or more XSD schema files. While WSDL.exe doesn't seem to support the XSD "import" function, if I include a...
3
by: prabhupr | last post by:
Hi Folks Not sure if this is the right group, if not please re-direct me to the right one. Here is my question =============== When I compile my ASP.NET WEB project from VS 2005 (.NET...
7
by: Kun | last post by:
I have a python-cgi form whose sole purpose is to email. It has the fields 'to', 'from', 'subject', 'body', etc. and if the user fills them out and clicks submit, it will invoke another file...
8
by: Andrew Robert | last post by:
Hi Everyone. I tried the following to get input into optionparser from either a file or command line. The code below detects the passed file argument and prints the file contents but the...
17
by: Eric_Dexter | last post by:
def simplecsdtoorc(filename): file = open(filename,"r") alllines = file.read_until("</CsInstruments>") pattern1 = re.compile("</") orcfilename = filename + "orc" for line in alllines: if not...
5
by: bobh | last post by:
HI, I understand AccessXP file size has a 2 gig limit but I trying to understand the following I have a tab delimited data file that is 1.3 gigs big and I try to import it into an empty...
2
by: Andrew West | last post by:
Probably a bit of weird question. I realise decorators shouldn't be executed until the function they are defined with are called, but is there anyway for me to find all the decorates declared in a...
9
by: a | last post by:
Dear friends I want import data from CSV file to mdb file How can I do that in vb.net?
4
by: lilyumestar | last post by:
I have project I have to do for class. We have to write 4 different .java files. Project2.java HouseGUI.java House.java HouseSorting.java I already finish House.java and I need to work on...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.