Sign Up |  Live StatsLive Stats    Articles 37,470| Comments 178,698| Members 19,495, Newest singhajay| Online 421
Home Contact
 (Forgotten?): 
    10 years of Excellence
    For best SPN experience, use Firefox Internet Browser!


                                                                   Your Banner Here!    




Click Here to Register/Sign Up Daily Hukamnama Member Blogs Downloads Website Navigation Help Fonts Tags
Sikh Philosophy Network » Sikh Philosophy Network » Current News » Information Technology » adding an attachment and view a file in a form

adding an attachment and view a file in a form

Our Donation Goal : Why Donate? : Donate Today! : Donate Anonymously (ਗੁਪਤ) : Our Family of Supporters
Goal this month: 500 USD, Received: 0 USD (0%)
Please Donate...
     
Related Topics...
Thread Thread Starter Forum Replies Last Post
Adding a Field to a Form ktie2332 Information Technology 28 28-Jul-2006 08:26 AM
access 2007 add attachment form needs a link to scaner Saied Information Technology 0 28-Jul-2006 08:16 AM
How do I change from datasheet view to form view Lisa Information Technology 3 28-Jul-2006 08:09 AM
Send file attachment if it exists TOMAC Information Technology 0 28-Jul-2006 08:01 AM
Re: send xls file as attachment from access vba Neil Sunderland Information Technology 0 10-Nov-2005 21:09 PM


Tags
adding, attachment, view, file, form
Reply Post New Topic In This Forum Stay Connected to Sikhism, Click Here to Register Now!
  #1 (permalink)  
Old 28-Jul-2006, 08:32 AM
chris1980's Avatar chris1980
Guest
 
Posts: n/a
   
   
adding an attachment and view a file in a form

  Donate Today!   Email to Friend  Tell a Friend   Show Printable Version  Print   Contact sikhphilosophy.net Administraion for any Suggestions, Ideas, Feedback.  Feedback  

Register to Remove Advertisements
hi. i was wondering if it is possible for a user to attach a file in a
form for each specific record and to have some kind of button next to
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/information-technology/12832-adding-an-attachment-view-file-form.html
the attachment to view it also in the same record. i have been banging
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=12832
my head trying to find a way to work it out but cannot. any help would
be really great.
Thanks


*







Do you agree or disagree with the writer above? Why not share your immediate thoughts with us! Login Now! or Sign Up Today! to share your views... Gurfateh!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 28-Jul-2006, 08:32 AM
Steve Schapel's Avatar Steve Schapel
Guest
 
Posts: n/a
   
   
Re: adding an attachment and view a file in a form

Chris,

You can add a field to your table, Hyperlink data type. In this field
you can enter the path/file of the "attachment", for example...
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=12832
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=12832
C:\YourFolder\YourFile.pdf

Depending in the file type, I believe it is more reliable if your entry
is preceded by the file: protocol identifier, for example...
file:C:\YourFolder\YourFile.pdf

Of course, this relies on the filename extension being recognised by
Windows.

--
Steve Schapel, Microsoft Access MVP

chris1980 wrote:
> hi. i was wondering if it is possible for a user to attach a file in a
> form for each specific record and to have some kind of button next to
> the attachment to view it also in the same record. i have been banging
> my head trying to find a way to work it out but cannot. any help would
> be really great.
> Thanks
>

Reply With Quote
  #3 (permalink)  
Old 28-Jul-2006, 08:32 AM
chris1980's Avatar chris1980
Guest
 
Posts: n/a
   
   
Re: adding an attachment and view a file in a form


Steve Schapel wrote:
> Chris,
>
> You can add a field to your table, Hyperlink data type. In this field
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=12832
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=12832
> you can enter the path/file of the "attachment", for example...
> C:\YourFolder\YourFile.pdf
>
> Depending in the file type, I believe it is more reliable if your entry
> is preceded by the file: protocol identifier, for example...
> file:C:\YourFolder\YourFile.pdf
>
> Of course, this relies on the filename extension being recognised by
> Windows.
>
> --
> Steve Schapel, Microsoft Access MVP
>
> chris1980 wrote:
> > hi. i was wondering if it is possible for a user to attach a file in a
> > form for each specific record and to have some kind of button next to
> > the attachment to view it also in the same record. i have been banging
> > my head trying to find a way to work it out but cannot. any help would
> > be really great.
> > Thanks
> >


Reply With Quote
  #4 (permalink)  
Old 28-Jul-2006, 08:32 AM
chris1980's Avatar chris1980
Guest
 
Posts: n/a
   
   
Re: adding an attachment and view a file in a form

Thanks alot steve. i will try to implement this tomorrow and i will for
sure let you know. this makes alot of sense though. thanks once again
Steve Schapel wrote:
> Chris,
>
> You can add a field to your table, Hyperlink data type. In this field
> you can enter the path/file of the "attachment", for example...
> C:\YourFolder\YourFile.pdf
>
> Depending in the file type, I believe it is more reliable if your entry
> is preceded by the file: protocol identifier, for example...
> file:C:\YourFolder\YourFile.pdf
>
> Of course, this relies on the filename extension being recognised by
> Windows.
>
> --
> Steve Schapel, Microsoft Access MVP
>
> chris1980 wrote:
> > hi. i was wondering if it is possible for a user to attach a file in a
> > form for each specific record and to have some kind of button next to
> > the attachment to view it also in the same record. i have been banging
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=12832
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=12832
> > my head trying to find a way to work it out but cannot. any help would
> > be really great.
> > Thanks
> >


Reply With Quote
  #5 (permalink)  
Old 28-Jul-2006, 08:33 AM
chris1980's Avatar chris1980
Guest
 
Posts: n/a
   
   
Re: adding an attachment and view a file in a form

hey steve. i tried your solution did not work for me. here is what i am
doing with my database. i have a form and a button by the name of
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=12832
(AddaFile) for each record. what i really want to do is if a user
clicks on AddaFile button in the form he should be able to attach a
file so then other people who have access to that database can see
what the whole issue was about. i want the user to add a file in the
form by just clicking on that button and each and every record and have
that addafile button. once they have added the file i was wondering if
he/she can also view that attachment. if you can help me out that will
be great.
chris1980 wrote:
> Thanks alot steve. i will try to implement this tomorrow and i will for
> sure let you know. this makes alot of sense though. thanks once again
> Steve Schapel wrote:
> > Chris,
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=12832
> >
> > You can add a field to your table, Hyperlink data type. In this field
> > you can enter the path/file of the "attachment", for example...
> > C:\YourFolder\YourFile.pdf
> >
> > Depending in the file type, I believe it is more reliable if your entry
> > is preceded by the file: protocol identifier, for example...
> > file:C:\YourFolder\YourFile.pdf
> >
> > Of course, this relies on the filename extension being recognised by
> > Windows.
> >
> > --
> > Steve Schapel, Microsoft Access MVP
> >
> > chris1980 wrote:
> > > hi. i was wondering if it is possible for a user to attach a file in a
> > > form for each specific record and to have some kind of button next to
> > > the attachment to view it also in the same record. i have been banging
> > > my head trying to find a way to work it out but cannot. any help would
> > > be really great.
> > > Thanks
> > >


Reply With Quote
  #6 (permalink)  
Old 28-Jul-2006, 08:33 AM
Steve Schapel's Avatar Steve Schapel
Guest
 
Posts: n/a
   
   
Re: adding an attachment and view a file in a form

Chris,

What is the AddAFile button supposed to do? How is the database
supposed to know which file to add? My suggestion was focussed more on
the second part of your question, in other words the viewing of the
document. If the file's path/name is entered in the field, then simply
click on it and the attached file should open.

--
Steve Schapel, Microsoft Access MVP

chris1980 wrote:
> hey steve. i tried your solution did not work for me. here is what i am
> doing with my database. i have a form and a button by the name of
> (AddaFile) for each record. what i really want to do is if a user
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=12832
> clicks on AddaFile button in the form he should be able to attach a
> file so then other people who have access to that database can see
> what the whole issue was about. i want the user to add a file in the
> form by just clicking on that button and each and every record and have
> that addafile button. once they have added the file i was wondering if
> he/she can also view that attachment. if you can help me out that will
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=12832
> be great.

Reply With Quote
  #7 (permalink)  
Old 28-Jul-2006, 08:33 AM
chris1980's Avatar chris1980
Guest
 
Posts: n/a
   
   
Re: adding an attachment and view a file in a form

Thanks for replying Steve. when a user clicks on AddaFile button it
will let the user choose a file from his Computer hard drive like the
file name is ISSUE2. when he clicks on that addafile button i want him
to add an attachment file to that record so that for our superiors when
they access the database they can see the file directly in the record
related to that that Issue rather than emailing them personally. there
is always a different issue file for each record. and for viewing i
think once i am able to attach a file for that specific record the user
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=12832
will be automatically able to view that file whatever format the file
is. i am still on computer so i will be answering your questions.
Thanks for your help
Steve Schapel wrote:
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=12832
> Chris,
>
> What is the AddAFile button supposed to do? How is the database
> supposed to know which file to add? My suggestion was focussed more on
> the second part of your question, in other words the viewing of the
> document. If the file's path/name is entered in the field, then simply
> click on it and the attached file should open.
>
> --
> Steve Schapel, Microsoft Access MVP
>
> chris1980 wrote:
> > hey steve. i tried your solution did not work for me. here is what i am
> > doing with my database. i have a form and a button by the name of
> > (AddaFile) for each record. what i really want to do is if a user
> > clicks on AddaFile button in the form he should be able to attach a
> > file so then other people who have access to that database can see
> > what the whole issue was about. i want the user to add a file in the
> > form by just clicking on that button and each and every record and have
> > that addafile button. once they have added the file i was wondering if
> > he/she can also view that attachment. if you can help me out that will
> > be great.


Reply With Quote
  #8 (permalink)  
Old 28-Jul-2006, 08:33 AM
Steve Schapel's Avatar Steve Schapel
Guest
 
Posts: n/a
   
   
Re: adding an attachment and view a file in a form

Chris,

Ok, just to clarify, you can't literally attach a file to the record.
What you are doing is entering the path/name of the file into a field in
the table.

So, there are two separate processes.

One is the process of entering the file's path/name into the database.
The simplest method, of course, is to just type it in (assuming you know
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=12832
it!) If you want the user to have access to a file explorer/selection
dialog, you will need to use some API code. There is some good
information on this at http://www.mvps.org/access/api/api0001.htm

The other is, once the file's path/name is entered into the database, to
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=12832
open that file for the current record. If the file's path/name is
entered into a field with a hyperlink data type, you can just click on
the textbox on the form, and the file should open. An alternative
approach, if you want to use a command button to open the file, is to
use code like this...
Application.FollowHyperlink Me.NameOfFieldWithFileName

--
Steve Schapel, Microsoft Access MVP


chris1980 wrote:
> Thanks for replying Steve. when a user clicks on AddaFile button it
> will let the user choose a file from his Computer hard drive like the
> file name is ISSUE2. when he clicks on that addafile button i want him
> to add an attachment file to that record so that for our superiors when
> they access the database they can see the file directly in the record
> related to that that Issue rather than emailing them personally. there
> is always a different issue file for each record. and for viewing i
> think once i am able to attach a file for that specific record the user
> will be automatically able to view that file whatever format the file
> is. i am still on computer so i will be answering your questions.

Reply With Quote
  #9 (permalink)  
Old 28-Jul-2006, 08:33 AM
chris1980's Avatar chris1980
Guest
 
Posts: n/a
   
   
Re: adding an attachment and view a file in a form

  Donate Today!  
i have already tried that api code. i created a module and copied the
code in a standard module but it gives me an error on StrFilter for
some reason i am still trying to debug that problem. and i was reading
these forums MSaccess i have seen a guy posting that he already have
created a button to attach a file in a form but his question was how to
submit that form through email or something like that. the second
process you told me i believe that all the users who are entering the
data in the form need to enter a valid path of the file in the table
and then add that Onclick procedure you just give me to view it. IS
this the only efficient way to do it? Anyways thanks for your help and
i will try to do this thing rite now i have been wrokin on it 2 weeks
nights and days searching cause i think everything is possible .
Appreciate that i will keep you updated.
Thanks
Steve Schapel wrote:
> Chris,
>
> Ok, just to clarify, you can't literally attach a file to the record.
> What you are doing is entering the path/name of the file into a field in
> the table.
>
> So, there are two separate processes.
>
> One is the process of entering the file's path/name into the database.
> The simplest method, of course, is to just type it in (assuming you know
> it!) If you want the user to have access to a file explorer/selection
> dialog, you will need to use some API code. There is some good
> information on this at http://www.mvps.org/access/api/api0001.htm
>
> The other is, once the file's path/name is entered into the database, to
> open that file for the current record. If the file's path/name is
> entered into a field with a hyperlink data type, you can just click on
> the textbox on the form, and the file should open. An alternative
> approach, if you want to use a command button to open the file, is to
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=12832
> use code like this...
> Application.FollowHyperlink Me.NameOfFieldWithFileName
>
> --
> Steve Schapel, Microsoft Access MVP
>
>
> chris1980 wrote:
> > Thanks for replying Steve. when a user clicks on AddaFile button it
> > will let the user choose a file from his Computer hard drive like the
> > file name is ISSUE2. when he clicks on that addafile button i want him
> > to add an attachment file to that record so that for our superiors when
> > they access the database they can see the file directly in the record
> > related to that that Issue rather than emailing them personally. there
> > is always a different issue file for each record. and for viewing i
> > think once i am able to attach a file for that specific record the user
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=12832
> > will be automatically able to view that file whatever format the file
> > is. i am still on computer so i will be answering your questions.


Reply With Quote
   Click Here to Donate Now!

Support Us!
Become a Promoter!
Gurfateh ji, you can become a SPN Promoter by Donating as little as $10 each month. With limited resources & high operational costs, your donations make it possible for us to deliver a quality website and spread the teachings of the Sri Guru Granth Sahib Ji, to serve & uplift humanity. Every contribution counts. Donate Generously. Gurfateh!
ReplyPost New Topic In This Forum Stay Connected to Sikhism, Click Here to Register Now!

Bookmarks


(View-All Members who have read this thread : 0
There are no names to display.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Tools Search
Search:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On

» Active Discussions
Can Sikhs worship...
Today 08:14 AM
32 Replies, 273 Views
Would an Atheist Pray in...
By Kamala
Today 07:40 AM
61 Replies, 5,297 Views
Sikh Philosophy Network...
Today 04:13 AM
18 Replies, 820 Views
Rozana Reports (ਪੰਜਾਬੀ...
Today 03:39 AM
410 Replies, 9,467 Views
Nice Punjabi Songs with...
Today 02:40 AM
18 Replies, 513 Views
Thought of the Moment!
Today 00:06 AM
116 Replies, 6,129 Views
English Sri Guru Granth Sahib Ji Translations
Yesterday 23:30 PM
6 Replies, 99 Views
Sikh Spokesman (ਪੰਜਾਬੀ...
Yesterday 21:25 PM
256 Replies, 6,075 Views
Difference in Bowing...
By Kamala
Yesterday 15:08 PM
11 Replies, 267 Views
What Really Happened on...
Yesterday 12:46 PM
13 Replies, 237 Views
Free Online Gurbani...
Yesterday 03:56 AM
13 Replies, 4,339 Views
English Sri Guru Granth...
Yesterday 03:51 AM
5 Replies, 175 Views
Edward Snowden: the...
Yesterday 03:34 AM
3 Replies, 189 Views
What Is Difference...
18-Jun-2013 09:18 AM
6 Replies, 183 Views
First There is Water by...
By Ishna
18-Jun-2013 05:03 AM
3 Replies, 194 Views
» Books You Should Read...
Powered by vBadvanced CMPS v3.2.3
All times are GMT +6.5. The time now is 08:17 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2 Copyright © 2004-12, All Rights Reserved. Sikh Philosophy Network


Page generated in 0.51099 seconds with 32 queries