Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Loadin the PATH of a file in a field

Status
Not open for further replies.

pakiyabhai

Technical User
Jun 3, 2002
47
0
0
IN
--

reposted again with appropriate subject

---




Ok ,

I have a small database with fields

Name | Item Code | Picture ,

now using Me![PictureImage].Properties("Picture")= Me![imagepath]

I am able to load , picture in PictureImage , without storing it in database,Now the problem , I have to manaually type n the path of the image in imagepath , everytime,

Is there any way by which I can create a browse button , by which I can load the path of the image directly in imagepath or atleast somewhere else , from where I can cut and paste ???


I have ONLY ONE EXTENSION .JPG nothign else to load


there's a link i found from this forum ,which I think may apply , take a look here

---

My database is located at

login - pakiyab
password - coolshit

-------

please do check it out , also I have included 3 pics for sample , u wil lhafta extract em to c:\pics for the datbase to work

thanx in adavace


thegame_ya@yahoo.com / pakiyabhai@hotmail.com
 
thread705-457897 is an echo in here Christiaan Baes
Belgium
"What a wonderfull world" - Louis armstrong
 
hi ,

i saved the module and got when i complied it i got an error on

msaof.strFilter = MSA_CreateFilterString _ 'File Filters

syntax error it says it is

this line , any ideaz ??
 
If you are only going to be using this routine for importing jpeg's then replace the existing Function Find_File with this. Will only show jpeg's.

Function Find_File(strSearchPath) As String
Dim msaof As MSA_OPENFILENAME
msaof.strDialogTitle = "Select An Image"
msaof.strInitialDir = strSearchPath
msaof.strFilter = MSA_CreateFilterString _
("Image Files (*.jpg*;*.jpeg)", "*.jpg;*.jpeg", _
"All Files (*.*)", "*.*")
MSA_GetOpenFileName msaof
Find_File = Trim(msaof.strFullPathReturned)
End Function
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top