Browse [Find A Directory Or File]

May 10, 2005

(Referring to this post (http://www.access-programmers.co.uk/forums/showthread.php?t=75790) by ghudson)


Hi,

This post was very useful, it really helped me out, but I do have one question. My database will be used by multiple users and will be stored on a mapped network drive, just as the files that I want to link to. Now unfortunately not all machines are configured the same, so the same network drive can have different drive letters depending on the machine and this might cause problems. Is there a way to modify the code to get the absolute network path instead of the drive letter?

thx
Luke

View Replies


ADVERTISEMENT

Browse [Find A Directory Or File] Code

Dec 11, 2006

I'm having a small difficulty in using the code example ghudson posted for Browse [Find a directory or file]. First off, the code works great. Thanks a lot for posting it!

The problem I am having is when linking a folder via dBrowseDirectory. The folders I am linking are on a shared network drive and I am trying to figure out how to set the initial directory to default to the networked PC. This way the user doesn't have to navigate to the shared drive every time. All they would have to do is navigate to the particular folder to link (2 clicks instead of 10+).

The dBrowseFiles function allows to set an initial directory, however I cannot figure out how to set it for dBrowseDirectory. Is there any way to do this by altering your code for dBrowseDirectory?

Thanks in advance!

View 5 Replies View Related

Directory Browse

Oct 5, 2006

I have a form where I want to browse for the directory path and display in a text box.I have done something similar to browse for file and display, but this time round I need only the directory path to be displayed .Need help on this.

View 1 Replies View Related

Modules & VBA :: Return Folder Directory To Text Box On Forms Record When Click Browse Command Button

Nov 12, 2014

I need to return a folders directory to a text box on my forms record called Files_Directory when i click the Browse command button... The folder will have more folders within it along with documents all relivant to the folder selected, hense the need for just the folder directory rather than a file.

View 12 Replies View Related

Find Directory - Slight More Advanced Help

Sep 11, 2006

I have successfully found - find directory and its pretty good (awesome comes to mind) and many thanks to ghudson - now this does more that I wanted which is great and I can move my project along further that I had envisaged - now where I get stuck is i want the form to to open up at each folder I have set up
I have make directory button (forgotten where I got this from but many thanks again)
DirName = "C:Datafiling" & Left(Me!QteNo, 6) & " " & Left(Me!QteInsnme, 40)
I am now trying to get the open form to look at this location

i tried tweaking the code to the above - but It didn't work am I being a muppet
i attached a copy of ghudson zip file with this in (I've renamed so I have kept the orginal safe) the form I am trying to open and look at is the one that ends **table

If you have not had the chance to view these (highly recomemnd it)

View 2 Replies View Related

Modules & VBA :: Find All Files / Folders In A Specific Directory

Sep 1, 2014

I'm using a function to find all files/folders in a specific directory, then copy each one to a specific destination folder. I'm going to use this on a weekly basis to backup files on a computer. I would like to use the vbarchive in GetAttr/SetAttr so I only need to copy these if they have changed since last backup.

Something like:

If GetAttr(strFile) And vbArchive = 32 then
filecopy xxxx, xxxx
else
rs.movenext

As I understand it, a value of 32 indicates that the file has been modified since it was last backuped up (i.e. since the file attribute was "reset"). How do I "reset" the file attributes to clear the vbArchive?? I've read some google searches and the only thing I could find was the files were set to vbnormal however I'm concerned that this will erase program files that are vbReadOnly or VbHidden.

View 5 Replies View Related

File Browse Dialog Box....

Jun 14, 2006

I have a field in a form to which I wish to be able to browse to a particular PDF file. This location is then to be a hyperlink that when clicked upon, it will open the chosen file.

I have seen a thread already for file browsing, but it said to look at the VBA code, which I have no idea what it means :(

Please help, this is driving me mad.

TIA

RD

View 3 Replies View Related

Control To Browse For An Image File

Aug 18, 2005

Hi,

I'm trying to add a control to my form that I don't know how to do.


On my form, I want the user to be able to click a button which will open up the standard file open dialog box. The user then will be able to browse through the appropriate directory and select an image file which will be saved on that specific record.

Attached is a strip down database as an example.

How can I do this? Any help would be greatly appreciated - I'm trying to do this for my work.

View 6 Replies View Related

File Upload To A Directory

Nov 20, 2007

hello good day. hope im inthe right place.
can someone point out to me if there is a way to do a file upload using ms access 2003 and not just stor the file path...thanks

View 14 Replies View Related

General :: Browse For A File To Import And Capture Its Path

Mar 12, 2013

I am creating a database where I want to be able to browse to a file, select it and import it into a table. I am able to do this. BUt what I want to do is create a log of these imports and haveit include the path of where the file was inported from.

The field I am having issues with is the capturing the path of the file.

Below is what I am using to browse and import a file.

Private Sub Command5_Click()
Dim dlg As FileDialog
Set dlg = Application.FileDialog(msoFileDialogFilePicker)
With dlg
.Title = "Select the Excel file to import"

[Code] ....

View 5 Replies View Related

Modules & VBA :: Browse For File Name And Place As String In Text Box?

Mar 10, 2014

I have created a form to send emails with attachments. The attachment path is specified in an unbound field which I have called [ToAttach] Rather than typing in the path, I want to use the browse function. I have inserted a browse button and can browse for the required file using following, but can't figure out how to place the file name in the unbound field as a string.

Code:
Dim f As Object
Set f = Application.FileDialog(3)
f.AllowMultiSelect = False
f.Show

View 7 Replies View Related

General :: Browse Button To Open File Path

Jul 22, 2012

I have a field on a form which the user currently has to manually type in the file path to a specific picture on a local drive. After the file path is entered, the path is linked and the picture is shown in an image box. I did this because I didnt want to bog the database down with attached files.

I wondered if I could have a browse button, which when pressed brought up the browse window to allow you to locate the image (using the standard windows browser). Then when you clicked ok, it writes the filename into the correct field on the form.

View 1 Replies View Related

Forms :: Allow User To Browse Path And Select File?

Jan 8, 2014

In my database i wanna use the DoCmd.CopyObject command with a button like as

DoCmd.CopyObject "Destination path can be browse and select file", "AcInformation", acTable, "AcInformation"

Image of the plane:

how can do this?

View 1 Replies View Related

General :: Access Form - Allow User To Browse For Excel File

Jul 18, 2012

What I would like to do is create a form that lets the user browse for an excel file, then will click an "import" button which then imports all the fields in excel into a table.

View 1 Replies View Related

Modules & VBA :: Browse For A File On Shared Drive And Link It To Record

Feb 24, 2015

I have a form displaying records. I would like the user to be able to select a button, browse for a file on a shared drive and link it to that record.

I have been exploring hyperlinking, which works for the most part, although I need it to display the share name rather than the drive assignment for that user. Such as drive1folder rather than C:folder.

Hyperlinking also unfortunatly requires the user to right click on a field select edit hyperlink then browse.

View 7 Replies View Related

Tables :: Browse For Excel File To Import Into Access Table

Jan 15, 2015

I want a user to click a button, have the file open dialog open, they select a spreadsheet, and then it imports into a table. The problem is the filename can be different every time. The table name will remain constant.

Here is the OnClick:

Code:
Private Sub Command8_Click()
On Error GoTo Err_ImportSpreadsheet_Click
DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel2Xml, "Table1", "T_Staff.xls", "Yes"

Exit_ImportSpreadsheet_Click:
Exit Sub

Err_ImportSpreadsheet_Click:

Resume Exit_ImportSpreadsheet_Click
End Sub

View 1 Replies View Related

Login And Redirect Users To Specific Directory, File, Or URL

Apr 28, 2005

Hi guys,

I need help in setting up a login page which would redirect users to their specific directory, file, or URL.
I'm able to create the login page without any problem but i'm unsure what exactly i need to do afterwards to get this to work.

can someone, anyone please help


your help would be much appreciated.


please mail me with any information you might have the1@studio9.shacknet.nu


thanks in advance.

View 1 Replies View Related

Modules & VBA :: Opening File Based On Directory Location

Feb 15, 2015

When creating an incoming inspection database, I want to set it up so when I am in a form to add data, I want to have a command button where I can pull up the associated CAD drawing based on part number and drawing number. I would like to enter the directory location into a table so I could change it if I need to.

So basically I want to go something like this:

.tblDirctoryLocation
txtDirectory

.tblProduct
txtProductName
txtProductNumber
txtProductCADNo

These tables would not be related to one another as there will only be one record for the directory location and multiple records for products.

Somehow I want the db to assemble file location like this:

“EQuality_DirectoryIncoming” & “ProductNumber_” & “CADDrawing” & “.pdf”
End result: EQuality_DirectoryIncomingProductNumber_CADDraw ing.pdf

Is there any way this could be done?

View 1 Replies View Related

Modules & VBA :: Copy File To New Directory On Button Click?

Dec 22, 2014

Is it possible in access, to create a button that will copy a file to a new directory? Specifically, the data field in question is an access hyperlink that we can click on to open a PDF drawing of a part. I just want to copy the file the hyperlink points to, into a new directory.

EX:
X:database/drawings/somefile.pdf
X:erp/drawings/somefile.pdf

I don't think a macro can do this, but perhaps vbscript can.

View 2 Replies View Related

Modules & VBA :: Scan Multiple Page PDF To A File And Directory Location?

Jan 20, 2015

I want to create a button on my form that when pressed will scan my multi page document (ADF) from my Epson WF-3540 and save it as a specified file name and folder.

View 5 Replies View Related

How To Find The Author Of A TXT File?

Jun 10, 2006

I have a TXT file in a folder (C: emp file.txt) I have the file's Title property set to 'Log file' and Author property as 'John'

How can I get these property values into my variables var1 & var2

View 12 Replies View Related

Find A File Or Document

May 31, 2005

i have created a form that has data in a field as a referance, i want to use that ref to open a page or PDF file to that referance ,

The idea is that the form is the data input for hard copy documents, i will scan the documents and store them on a hard drive i then want to open the documents as word, or PDF files from the form to the ref of the field in that form

can anyone help

View 1 Replies View Related

.mde File Cant Find Project Or Library

Jun 16, 2005

Please help!

Working on an Access 97 database that I have inherited, on win 2000. The database is converted into an .mde file for the users.

I need to convert my new version to an .mde file, it does convert, but then when trying to open it afterwards gives the error below. Believe it's connected with the startup form frmsplashscreen which has 'on current', 'on open' and 'on timer' events

The expression On Open you entered as the event property setting produced the following error: Cant find project or library.

I have gone back to the .mdb it was converted from and compared the startup form to that of a previous version. All the code is the same.
I have also tried commenting out the on open event, which then changes the error to

The expression On Current you entered as the event property setting produced the following error: Cant find project or library.

I don't understand why it does not work, this same form opens fine when it's an .mdb file.

This is the first time I have worked with .mde files...I've looked on the internet, can't locate the exact error but similar ones point to problems with files on my ws (references etc). Previous versions of this database as .mde files work fine though?
Just say if you want the code from the startup form.

Help! Can't see what is causing this issue.

View 1 Replies View Related

Find Out What Users/workstations Have .mdb File Open?

Jun 29, 2006

Hi
I am looking for help related to the You do not have exclusive access to the database at this time. If you proceed to make changes, you may not be able to save them later. message when trying to change the design. I have done a lot of reading on this forum as well as googled the subject but have not found anything regarding my specific question. I find that theres a whole lot of information regarding workgroup security and how to set up and troubleshoot. However, my needs are a bit more simple I think :) We have a database that is shared among 5-6 users during a couple months out of the year. There are no log-on ids required and everyone just opens the file and works as needed. Everything works fine; we have no problems with users changing or doing more than they are supposed to. Therefore, I dont want to break anything by complicating mattersit works and were happy with it. The only annoyance is that during these couple months, someone has to make occasional changes to the database in design mode. Of course, we need everyone else out of the database so he can have exclusive access. This entails calling and/or running around asking those people to close the file and sometimes physically checking computers left unattended with the file open. So my question is: Is there any way to find out what users or workstations have the file open? This would make it so much simpler. All the users are on a Windows Server 2003 network and the files reside on a server. Perhaps this is more of a Windows question; I couldnt think where else to post it! If anyone could point me in the right direction, I would really appreciate it.
Thanks!

View 3 Replies View Related

Microsoft Access Can't Find The Database File

Dec 4, 2006

Hi,
We migrated on DB to a shared network drive. But the users cannot open the DB. It keep give an error message that microsoft access can't find the database file. Please advise.

View 2 Replies View Related

Run Time Error 2147467259 Could Not Find File

Dec 14, 2006

Hi
I am running Access 2000 with MDAC 2.8 and SQL Server 2000 database. I have linked the tables of the database in Access. The problem is that it would not allow me to insert/update/delete but only to select from the database.

Here is the code:
Dim strSQL As String
Dim con As ADODB.Connection
Dim cmd As ADODB.Command

Set con = CurrentProject.Connection
Set cmd = New ADODB.Command

Set cmd.ActiveConnection = con

strSQL = " INSERT INTO dbo.crop_demand_yearly (" & _
"geo_id, crop, area, water_value, water_use, date_from, date_to)" & _
" VALUES("

strSQL = strSQL & ((Val(Me.txt_borenid))) & "," & (Val(Me.cbo_crop)) & "," & (Me.txt_area) & "," & (Me.txt_use) & "," & (Me.txt_value) & ",'" & Format(Me.txt_datefrom, "dd/MM/yyyy") & "','" & Format(Me.txt_dateto, "dd/MM/yyyy") & "')"


cmd.CommandText = strSQL

cmd.Execute strSQL


con.Close
Set cmd = Nothing
Set con = Nothing

I dont understand what is the problem! Please help

View 1 Replies View Related







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