Copying Images To Folder Location

Aug 21, 2006

Hi there,

I have a form which allows a user to click a button, select a image file and it then references that path instead of embedding it. At the same time I would like to write some code that will copy the image from wherever it is located and copy it into the application pathimages folder.

Can anyone help?

View Replies


ADVERTISEMENT

Modules & VBA :: Copying File To Specified Folder And Updating Records With New Location?

Jan 28, 2015

I'm currently working on a database to track and inventory documents in my organization similar to a library catalog, but with a digital archive as well. I'll need the ability to "attach" documents to records in the main inventory (though using links instead of storing it in the db) and have the documents live in a centrally accessible location on our shared server.

I will need to have this function work through a few different tables and in a few different iterations, but I'm trying to work on the simplest part first, which is attaching a thumbnail/preview of a given document to the record for that document.

I've got some VBA working well which opens the file picker and copies the file to a directory relative to the DB. It also creates a folder with each employee's ID number if it doesn't exist already (which it gets from the Windows log in) and adds "Copied_" to the front of the file.

Now I'm trying to get the VBA code to interact with the record. Presumably I need to tell the form button I'm using to launch the VBA code to pass the primary key of the record being displayed to VBA. Then, at the end of the VBA code I need to take that value and find the record again from VBA so I can update the MediaThumbnailLink in the original record.

Does this order of operations make sense? If so, how should I go about passing these values back and forth and writing the new link value?

Here's the VBA I'm using so far...

Code:
Option Compare Database
Public Sub GoCopyThumbnail()
Dim fDialog As FileDialog
Set fd = Application.FileDialog(msoFileDialogFilePicker)
Dim varFile As Variant
Dim LUser As String

[Code] ....

View 2 Replies View Related

How Do I Link Images To A Folder?

Mar 30, 2005

Hi there.....

I have a minor problem......if anyone could help me on this one, would be much appreciated.


I have a field "OLE Object".

Great!

BUT!! .......I want to be able to LINK my products to pictures from a file.

IE:
Product 1 = AB1.jpg
Product 2 = AB2.jpg

Both images are in C:/images

So...product ID1 is linked to image AB1.jpg...product ID2 is linked to AB2.jpg.

The images must also appear as images in the FORM.


Any ideas on how I can do this ?

Thanks in advance.

Chris

View 1 Replies View Related

Need A Form To Browse Folder Location

Jul 21, 2006

I would like to create a form to allow the user to choose a location to place a file. I would prefer to have a browse command button so when he/she clicks the windows explorer view opens and the user can select the location. I have seen this done, but I am not sure where to start. If anyone has an example to show me, it would be greatly appreciated.

Thanks!!

View 1 Replies View Related

Display Images From Hyperlink Within Folder

Mar 9, 2006

i've looked but can't find the answer!! which is unusual as this forum covers everything.
i have a field [photo location] with a hyperlink to a folder within which is a number of images. at the moment i have 2500 folders and its growing daily. the action i want when the 'photo location' field had got focus or when clicked is for the photos within the folder to open [not within the form itself] - either in seperate windows or preferably all together. i am using irfanview to display the images but am easy on this point. i do not want to give each photo its own hyperlink because there are thousands of them. any suggestions as to how i should do this?

thanks

View 2 Replies View Related

Using Images Stored In Local Folder In Report

Apr 25, 2005

Hi All;

Any advice would be much appreciated….

I have a db of products which drives an ASP website, and includes links to images, which I have now stored locally (with the image path amended to point to the local images folder) along with the images folder containing all the images.

What I now need to do, is produce Access reports using these images, this I initially assumed would be a simple task, but hasn’t in practice worked out that simple!!

So, I now have local folder containing the images, and the products table with an Image field that stores the local path to the image – How can I now get the record and corresponding image to appear in my report? I’ve tried using an OLE field for the images, but this means updating each record manually (unless there is any way of updating the OLE field from the existing image path field??)

Am I missing something totally obvious here?

Thanks in anticipation!

View 2 Replies View Related

Modules & VBA :: Using Images In A Folder On Report / Form

Feb 28, 2014

I have photos stored in a folder on a drive. I have referenced them before in a simple picture viewer I created in a form. I create the file name by referencing the values of a list box on the field.

Example:

The list box has piid.2005.001 and image name is 2

filename = C:Temp" & pidd & "" & piid & "_" & imageName & ".jpg"
C:Temppiid.2005.001piid.2005.001_2.jpg

Each piid has it's own set of photos in their own folder

Now. I want to be able to print out all the files in a report/form. The piid and image name are stored in a table called tblPhotos so I could reference there.

I want to have a button I click that generates a report/form that spits out all the photos in that folder. Next to a button would be a text box (txtWhichPiid) where you enter in the piid and that's how you know which piid's photos to use.

View 2 Replies View Related

General :: Copy Network Folder To Another Location And Rename It

Jul 17, 2013

I'm looking for copy folder functionality and I can't find anything.

In access 2007 when I push a button on a form, I want to copy a network folder to another location and rename it.

View 1 Replies View Related

General :: Copy A Folder To Location Selected By The User?

Sep 4, 2012

I have a folder with Access files, subfolders, and some .vbs files in it. It requires one person to navigate through a setup process. Once the setup is completed, they need to copy the folder and its contents to a location on a shared drive, which is unknown to me and will be chosen by the user at the site. There could be many sites.

It basically works like this:

Files are downloaded to C:Program Files.

A vbscript is run and extracts a folder directly to the C:Drive and opens it. I'll call it C:Test.

The user manually moves the BE file to a shared drive.

The user opens the FE file and is walked through using the Linked Table Manager.

The user then follows a series of forms to input data.

After this, the FE closes and another DB opens.

The second DB walks them through the Linked Table Manager and closes.

Option #1 At this point I would like to have a script and have it copy that folder, C:Test, and its contents, and have a dialog box open telling the user to paste it in a location where all users have access to.

Option #2 A script that will backup the folder and all its contents to a shared location selected by the user.

Either option will l allow others to navigate to that location, copy the folder, and paste the folder to their C: Drive.

View 2 Replies View Related

Access Denied To Copying Database Folder

Mar 2, 2007

Hi all,

I have a database stored in a folder, and this folder can be accessed through a Network.

Is there a way to protect users from copying this folder to other areas? That is I would like to restrict access from users copying the folder where the database is stored.

Thanks for any suggestions and help.

View 1 Replies View Related

Reports :: Make Custom Report And Show In It Images From Folder

Jun 22, 2014

i have a database. the database have a table called CardDetails in this table there is like 1000 rows.The table have a field named MedicalId. and i have a folder . it's destination (D:CardPic) . this folder contains 1000 pic has the same names as the medical ids....i need to make a report and show on it these pic's the database doesn't have a afield that contains the path.i need to auto display the images on the report depending on the medical id.

View 10 Replies View Related

General :: Extract Embedded Images From Database And Save In Folder

Nov 21, 2012

Many years ago I created a database that has one embedded image for each project.

I am now redoing this db in 2010 format and I want to extract these images and save them in a folder so I can link them to the new db based on the project ID number

The table is [Project main], the unique project ID is [R&D ID#] and the image file is stored in [Item image] as an OLE object. i would like to save them to C:db images

View 1 Replies View Related

General :: Pull Images From Shared Folder On Network With Links - Email Attachment

Jul 9, 2014

I have a database that pulls images from a shared folder on our network with links. Is it possible to create a button to email the current record on a form and attach the file it references in the link?

The attachment is a pdf signature. I didn't want to include the files in the database for space issues.

I am using Access 2007. We out outlook as our email client.

View 1 Replies View Related

How To Open A Dialog Box To Move Files Inside A Folder That Is Setup As Current Folder

Sep 2, 2015

I'm trying to automate a process of selecting a set of file/s and move them in a folder. When I click on a button, it should open a current folder that is setup in the code.

Lets say that I have a folder C:documents est, and very time I click on the button, it should open the dialog box with that path so I can select the files from another folder, drag them there and they will be saved in that folder.

This will form part of wider automation that will send an email stating that those file/s where placed in that folder.

I have in the same form where the button is placed, 3 check boxes that needs to be passed to the email as well that one or all the files where placed in the folder.

View 10 Replies View Related

Modules & VBA :: Open Folder Nested Inside Main Folder?

Mar 16, 2015

I'm trying to open a folder based on a BIN nr. This folder could be in a main folder that has diferent subfolder. As there where differnt naming used to create the folderes, one of the things they have always is the BIN nr. It alwasy start with a unique number and maybe I could use it to scan the subfolders and open that one that the BIN nr is equal as in the field BIN.

Now we have serveral 1000th of folders and finding them takes time.

View 3 Replies View Related

Location Map

Jul 20, 2006

Hi folks,

I have 50 locations spread over the UK and each site has a red, amber or green status based on several criteria. What i want to do is have a form with a map of the UK and have each location represented on the map with it's red, amber or green status based on coordinates in the country i guess.

Thanks
Mark

View 4 Replies View Related

DB Location

Mar 24, 2005

How do I find the file location of the current database?

View 2 Replies View Related

Images

Apr 16, 2008

I have a table that is linked to SQL server
In this table I have a field that has thepath to an image
C:TempImagexxx.pdf
What I want to do is have a dropdown that the user can select a Notice Number and then have its image pop up in the form.

I have a Notice Number field and a Path field.

Do I create a Query to query the two fields.
Create a Drop Down box and assign the query to the drop down box.

But then how do I get the image to popup...and in what and unbound object frame?

Any help would be apprecaited

THanks

View 3 Replies View Related

Inventory By Location

Nov 8, 2006

Hi all.

I have been working on an Inventory Database over the past few weeks and I have run into a problem.

Currently I am designing the database to use the common way to calculate on-hand inventory levels (Latest Stocktake(cycle count) + Received - Used). The problem comes when I am trying to calculate this value.

A solution that seems to work is to take stocktake for a given product using the ProductID and date. I have a child table linked to this one to show the quantity and locations of the product. However, with this method, I will have to count the inventory for every location the product is in when the stocktake is taken. This method may work, but accidents may happen and an employee may forget to count both locations when taking stock. Then current inventory levels will be way off.

Is there an easier or more efficient way to do this?



Table Design
-=-=-=-=-=-=-

tblStockTake
StockTakeID
ProductID
Date

tblStockTakeDetails
StockTakeDetailsID
StockTakeID
Quantity
Location

View 2 Replies View Related

Ouch MDB Location ... Big Huh????

Aug 16, 2007

Okay trying to get at an mdb that I have copied from the live network drive onto my own machine. Each time I try and look at a table in design or data mode it keeps trying to locate the table on the network drive.

How do I tell access to look at the copy on local drive? Using version 2003, and don't remember this issue from version 97.

View 4 Replies View Related

Images & MS Word

Apr 13, 2007

To queries here:

Database is the MS Contacts Template with minor adjustments.

1. Trying to insert a link to an image using a bound OLE object in my form. Now I've got it top work. However, the link appears normal size in the centre of the object box. Problem is when I resize the oject box so that llink text just fits fine. The text resizes with the box and you need a microscope to read it.

2. I want to be able to cerate merged letter but I cant select Tools>Merge it with MS word fro some reason (i've aslo tried with with DB's we use in work with same problem) but publish with Word is available.:confused:

I am by no means an expert with Access so please, please post replies in lamens terms.

Thanks,

Marc

View 2 Replies View Related

Images In Cells...

Feb 19, 2008

Hello,

I did a cursory search of the forum and didn't find anything (probably more my search than the content). I also think I know the answer to this, but I want to clear it up once and for all.

Is it true that I cannot insert an image into an Access Table in a way that it treats the image like data (e.g., it comes up on reports as entered).

If so, and I suspect it is so, what would be the best way to associate a row with a certain image in Access? Here's what I'm hoping to do: I have a list of projects and all of them have a status. Right now the "status" column includes the text "Green," "Yellow," or "Red." I would rather have this text display as green, yellow, or red color rather than text. Is this possible?

Thank you!! :D

View 4 Replies View Related

Images + Tables

Jan 11, 2006

Hello there

I got a questions and maybe you prof. can help me out

I got a table with all employees in it

Example

John Doil
Mina Lizo
Sholly Nopi

etc.

Its has 250 records.

I also got all the pictues of them
But the pictures have the following name

John_Doil_.jpg
Mina_Lizo_.jpg
Sholly_Nopi_.jpg

Also i still have pictues from ex employees.

I have all the filepaths of the jpg in a table.

Is there a way to link the 2 tables based on first name
Or make a extra cell and in a query take the names for the _ that takes out and put it in that cell.

Sorry for my bad english if you got question plz ask

View 9 Replies View Related

Buttons And Images

Mar 11, 2005

I need help combining both text and images on an Access button. Does anyone know how to do this? Bryant

View 2 Replies View Related

Images Not Showing Up

Mar 23, 2005

Hi there,

I have a "minor" problem which most of you will probably have a laugh about :eek:


I have set up my Table / Form to have an image for each "item".

Now...when I add the image, it does not show up as the thumbnail JPG. It only appears as the image name.

So instead of seeing a picture, I see 1.jopg (example)

Can anyone help me with a correct hint?

Much appreciated

Chris

View 5 Replies View Related

Record Images

Jul 20, 2005

Before you ask, yes I did search, but no it didn't help...

OK, database is storing members, so each member record needs to have a picture of them. I've made a field in the members table for the path of the image. I've followed the example here - http://www.utteraccess.com/candace/candace/picture/picture.zip , but I keep getting the error 'You can't reference a property or method for a control unless the control has the focus.' When I've tried to set the focus to it I get the error '# can't move the focus to the control MemberImage.'

What am I doing wrong?

View 14 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved