How Do You Link To An External File?

Dec 8, 2004

Hi there,

In an access db, I want to add a field called 'FileName' and simply add a link to a file. In tabular view, would I simply put 'filesmynotes.txt' into the database? Also, when I asp this to a web page, should it (or can it) show as a hyperlink?

Thanks,
Greg

View Replies


ADVERTISEMENT

Is It Possible..... To Link External File Again

Jul 9, 2005

Is it possible to link external file again when database is ready and the source file has been moved to other location?
And going farther -> is it possible to create some kind of dialog wich prompts user to point the external file as linked?

Thanks!

View 5 Replies View Related

Queries :: Link External File To Existing Database?

Apr 30, 2013

Basically it's trying to take all the files in a given directory and add them into a existing database.

I have a database called Permit. the database has a field called "SEAL" and they will be creating an additional field "SCART" to hold the contents of the file that exist in the directory. Each image file, in directory, is named the same as a unique record in Permit.

example:
Permit-SC might have unique record 532442
An image file would be name 532442.

If the image file matches a record in Permit the image should be added to permit in a field called "SCART". At this point I'm not certain if I want a link or the actual image included in the record. since there's a possibility of including the permit file on the website it might be cleaner to have it included.

View 7 Replies View Related

Link To External Data

Apr 24, 2006

I have a fairly complex database that will have many users. I am looking for a way to sort of link the data in a text box to an external database or text file of some sort to know who created a new record in it.

For example:

The database is on a network drive. Each person who will have access to it has a small file in their C: drive that contains their name. Whenever a new record is created, the name on that file is added to the record to know who is it that added it.

How do I do that?

Thanks

mafhobb

View 1 Replies View Related

General :: Change Link From One External Database To Another?

Feb 26, 2013

I've got an Access 2010 application that currently links to a SQL Server 2000 database. I need to change the link to a SQL Server 2008 database on a different server. Where do I go to change the link? When I click on External Data, ODBC Database, I only get an option to import source data. I don't want to import any data. I just want the application to link to a different external database. If I go ahead and click OK, I choose my ODBC connection and log in to the 2008 database. Now I've got a list of "import objects" to choose from. I choose one table (just for testing; I actually want to link with all tables), it says it imported successfully, but when I view the data in that table from Access, it's the same old 2000 database data.

View 5 Replies View Related

Opening Specific Form View From External Link

May 19, 2015

I have 4 forms in my access file. Now I have 4 buttons in html and I wanted to know if there was a way to open a specific form view based on the button click in the html page.

So access will open and show the form that is linked to the selected button in html.

View 14 Replies View Related

General :: Cannot Use ODBC To Import From / Export To / Or Link To External Microsoft Access

Mar 16, 2014

I am trying to create an ODBC link to a copy of the Northwind data base.I am running Win7 on a 64 bit operating system but am keeping office running as 32 bit for Access, Excel , Visio etc due to the fact that I have a lot of old apps tied to them.

When I attempted initially to create a new system DSN ODBC connection it only allowed me to use SQL drivers. (No plurry good) So after some searching I found out that I could use a file in C:WindowsSysWOW64 called "odbcad32.exe" which has allowed me to view /use the total list of drivers to import data.So I can set up a DNS ODBC named Northwind1 and I can access the database without problems using Excel.However if I try to use the same ODBC link in Access to connect to Northwind1 I get the following error message:"You cannot use ODBC to import from export to, or link an external ?Microsoft Access or ISAM database table to your database".

View 2 Replies View Related

Copying OLE Data To External File

Dec 23, 2006

We have saved image in the database as OLE Object. It is showing “Microsoft Photo Editor 3.0 Photo / Package” in the table. We want to save these pictures as external file in Jpeg format. Please help us to solve this problem.

Thanks in advance

View 1 Replies View Related

Joining String And Printing External File

Apr 25, 2006

Hi Guys,

Been trying this one all day. I've tried playing with a few things from the forum and i'm nearly there. I just need a wee bit of expert help.

I have a form that displays a persons details and on it i have a command button, and all i want to do is to print a pdf file (or maybe jpg files) that are in a certain folder on a network.
To do this i must reference the employees name folder and then there name file.

This is what i have got so far:

Dim I As String
Dim S As String

Me.First_Name.SetFocus
I = Me.First_Name.Text
Me.Surname.SetFocus
S = Me.Surname.Text

Application.FollowHyperlink "F:Personnel Certs([I] & ""& [S])([I] & "" & [S]).pdf"
SendKeys "%(FP)"
SendKeys "~", True

************************************************** *

All is good until the Application line where i am trying to join the two text strings from the First_Name and Surname Textboxes.

The values for I and S are working.

The path to the folder is: G:Personnel Certs"persons name""persons name".pdf

The other method i could and may use is the command dialog which will give the user the choice of file to print but if i use this i want it to access the persons name folder anyway.

Many thanks in advance

View 4 Replies View Related

General :: Importing Text File To Get External Data

May 16, 2013

Here is the import statement I'm using:

DoCmd.TransferText acImportDelim, "IT315 Import Specification_txt", _
"IT315", "D:4533 Hires Rehire Status ChangeIT315.txt"

I can manually transfer the data ie thru File --> Get External Data etc but I can't seem to get the above statement to work --- with the same specification!!

The details are in the attached doc file.

View 6 Replies View Related

Modules & VBA :: Find All Table Names From External File

Nov 6, 2013

I'm trying to find all the table names inside an external access file from a path.

I have a code for the user to select a file which return a patch to the file.

Then I need to find all the tables names from that file and append them to a list.

so I them can input them into a code and link the tables.

here is the code to get the file patch:

Code:
Function getFileName(path) As String
Dim f As Object
Dim varFile As Variant
Dim path
Set f = Application.FileDialog(3)

[Code] ......

View 8 Replies View Related

Appending External Text File To Table With Primary Key?

Aug 13, 2014

I have a table that contains a primary key and I am trying to append records from a text file. When I go to append the records, it tell me that XXX amount of records were lost due to key violations. Shouldn't access be able to figure out how to create new ID's on newly appended data?

Access 2007.

View 3 Replies View Related

Modules & VBA :: Prevent Duplicate Records To External CSV File From Form

Nov 24, 2014

I have some code which creates a record in an external csv file to provide information to upload a vehicle to the website. It works fine with the exception of creating duplicates when, for example an option to amend a record is given to the user before continuing to a new record. The option has to be in place in case there is an error in the specifics of what is important to be recorded in the database and under such circumstances the form code allows the user to tab through the form and correct any errors, but this creates duplicate entries in the csv file as the user has to pass through the 'SavePrintVehPurch_Exit' button a second time after corrections are made.

I am wondering if there is a way of altering the following code to effectively look look to see if the csv record exists and if so correct any changed field information rather than create a whole new record or create a new record where the record does not exist - The record in the csv file is determined by the 'Me.VP_VehRegMark.Value '.

Private Sub SavePrintVehPurch_Exit(Cancel As Integer)
Dim fileText As String
Dim fileName As String
Dim fileNumber As String
fileNumber = FreeFile

[Code] ....

I am wondering about introducing the something like the following ( but can't work out how to clarify comparison of the fields)

If Len(filename(fileText)) = ? Then
Do not change entry
Else
Overwrite the new detail

View 2 Replies View Related

Modules & VBA :: How To Save File From Attachment Field To External Folder

Sep 5, 2014

I have a table with an attachment field called email, where a .msg file is stored for each record. Looking for code to save this contents of this field in a folder in my drive.

View 1 Replies View Related

Modules & VBA :: Automatically Attach External File To Email Generated By Access Database

Nov 24, 2014

I have an Access 2013 database which will generate a pdf report and attach it to an email using the code:

Code:
DoCmd.SendObject acSendReport, "Report Name", acFormatPDF, Nz(To email address, a), , , "Email Subject", "Email body", True

I would also like to automatically attach on the server to this email. Such a file stored such as servernamesharefilename.pdf. Is it possible to do this?

View 14 Replies View Related

Link To A File (ie: Pdf, Doc, Etc)

Feb 12, 2008

Hi everyone.
I am considering adding a new feature to our customer database. Let's say we recieve a letter from a customer, I'd like to be able to scan the letter into the computer, saved as a PDF (for example) and then, on the customer form, provide a 'browse' button so that we could browse to the file and then the address of the file gets saved as a text field in the relevant table.

Next time someone brings up the details for that customer, the letter would be accessible via a hyperlink to the file.

It sounds relatively straight-forward, but is it?

Thanks

Martin

View 11 Replies View Related

Link A File In The Switchboard...

May 31, 2006

How do I link to a file in the switchboard so the word document comes up when the user clicks to print his data. Thanks.

If you have any other better way of making an identical letter for all the contacts, please let me know.

View 3 Replies View Related

Link To A PDF File In Another Drive

Feb 8, 2006

What I have is a bunch of files located in another Drive (PDF). I would like to link to them by id number from access.

Is this possible?

View 4 Replies View Related

Link To Pdf File Within Access

Jul 21, 2006

Hello..

Here is what I would like to do. I have a folder say with 100 pdf's. What I would like to do is from an access folder be able to point to the specific pdf and have it create a link within the access form to the pdf they point to... Does this make sense?

Is there a way from within an access form that you can have a button that lets the end user look in a folder and select the pdf... and then create and store the link in an access form???

Thanks
R~

View 10 Replies View Related

Link Table From .mdf (sql Srv) File Into Access Db

Mar 8, 2006

i have a pc which doesn't have sql server installed. is it possible to link tables from .mdf file sitting on the pc into access database?

View 1 Replies View Related

Import / Link Excel File

Apr 22, 2005

look for the best method. I have another software to work with my access. End of each month, ProgramA will generate an excel file with the monthly data. I want to import/link it with my access. I first try to import it everytime I generate the new excel file. However, there are one line at the end of the excel file with does not match the feild requirment, and generate an error table in access saying a number field cannot have string.

Then I try the link method instead. This time, it would work at all. The first time is OK, but the next time, I guess more lines are generate than the orginal in the excel file, it could not open up. Number of columns is the same.

The best method right now is to delete the last line of the new generated excel file, however, because I am not the one using it, I want to have a better method for my co-workers.

Are there ways to import excel data except the last line;
or
Are there ways to import excel file without an error table generate

Thanks :)

View 1 Replies View Related

Link MS Project File To Form

Aug 14, 2006

http://www.access-programmers.co.uk/...ad.php?t=97787

I am attempting to add a command button on a form that will allow user to browse files, then select a MS Project file to import, then have it linked to the current record (by a hyperlink or icon of some sort) so that clicking on it will open that MS Project file.

I found the above thread and have imported the modules and the fFindOpenImportFile in order to test in my database. I have made only slight alterations to the code, as I am still a novice w/ VB, but may not have done so correctly. In the Private Sub bImport_Click, I inserted 'tbFile' where sample "C:WindowsWin.ini" had previously been, so that it will import the file already selected from the bBrowse_Click. (If there is a cleaner/better way to do this, I would appreciate any help.)

Here is an exceprt from the code:
Private Sub bImport_Click()
On Error GoTo Err_bImport_Click

Me.tbHidden.SetFocus

If IsNull(tbFile) Or tbFile = "" Then
MsgBox "Please browse and select a valid file to import.", vbCritical, "Invalid File"
Else
If Dir(tbFile) <> "" Then
CurrentDb().Execute "DELETE * FROM tImport"
'FileCopy "C:WINNTWin.ini", "C:WINNTWin.txt"
DoCmd.TransferText acImportDelim, , "tImport", "tbFile", False
MsgBox "Your file has been imported into the Database."
Else
MsgBox "Your computer does not have a C:WindowsWin.ini file so the import example will not work.", vbInformation
End If
End If

Exit_bImport_Click:
Exit Sub

Err_bImport_Click:
MsgBox Err.Number & " - " & Err.Description
Resume Exit_bImport_Click

End Sub

The imported form works great for 'Browse' or 'Open', but when I try 'Import', I get the following error:

2391- Field 'F1' doesn't exist in destination table 'tImport'

I even went back to the sample database and tested the form within the sample, using "win.ini" file and get the same error????:eek:

Of course, when I try it with an actual *.mpp file, I get this error:

31519- You cannot import this file.

...which leads me to believe that even if I fix the first error, I might be on the totally wrong path b/c it's an *.mpp file???:confused:

Any help would be greatly appreciated.

Thanks in advance for any help!

View 5 Replies View Related

How To Update Network Link To The Correct File.

Dec 6, 2006

I have 2 files with linking tables. Both are posted on the same network drive for the office to access. However some users have their drive link to drive E: and some to G:, etc. How do I get the file to automatically find what drive the user has and update the correct link in Linked Table Manager?

Thanks for your helps,

Penguin

View 4 Replies View Related

Linked CSV File Wont Use Link Specification

Jul 5, 2005

Hi there,

Am hoping someone can shine a light on my problem as this has me ripping my hair out.

first off I've set up a subform in my main form to display a query using a linked table as the data(a excel exported csv file). nothing special.

however, I have had to use a link specification to determine how the table is linked. i.e. what fields should be defined as double (as access treats them as integers for some reason even though the numbers are too big!) and which fields need renaming.
without this link specification, the data will not be handled correctly.
ok no problem. I've had this working. The table links fine.

When i came to roll out the database, I set up the security in order that multiple resources can use it at the same time.

Now when I log in and use the form I get the following error.

'Text file specification <filename> does not exist. You cannot import, export or link using the specification'

Arrgh. :confused: I used the specificition to link the table in the first place! I've tried refreshing the link using the Link Manager, I've tried re-linking it and I've also tried linking the table and creating new specifications, all with no luck. I get the same message each time.

My next step is to import the data instead(again I'd need to use a link specification). But I'd really like to solve this as I can see no reason why it shouldnt work.

Can anybody help?

View 4 Replies View Related

Code To Link Text File As Table

Jan 29, 2008

I'm trying to figure out how to link a text file to my database with VBA. I know how to do this for other types of data sources, using the DoCmd.TransferDatabase acLink command, but need guidance using this with TXT files.

Thanks,


Randy

View 3 Replies View Related

Link To A File Or Folder From An Access Form

Jan 12, 2006

Hi Di Hi

I am new to Microsoft Access and have a little problem. I have searched the forum and nearly found the fix but I didnt quite understand what to do, so im creating a new thread.

I have a Access Database and have a client page that stores all the information about that client. We produce reports (scanned word/pdf) for each client and we store the report files in a client folder using the Client ID taken from Access.

My question is can I somehow produce a link from the Client Form in Access to the Client Folder or Files in explorer. I have seen the Hyperlink option but that is only availabe in Design View.

Hope someone can help. Thanks in advance,.

View 11 Replies View Related







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