Hi, I did database where is a Form with Listbox.
In this listbox there are names of files (*.doc, *.xls) and some more information about each file.
My idea is when Iam creating new data record that i put 1) name of file, 2)some information about and then I click on button "explorer" where I can set up the path (eg. c:\abc\document.doc). Everything will be writed to table.
I find some explorer on this forum ( http://www.access-programmers.co.uk/forums/showthread.php?t=97787 ) but I have to modificate it and Iam not understand code well so I have to write every path by hand meantime.
Next problem is when somebody from net group want to run and use my database from my computer, the file path (c:\abc\document.doc) is incorrect for him.
The way how to solve it is to select relative path "\abc\document.doc" - this is the next thing I dont know how to write in code.
If somebody knows how to help me I will be very happy.
Thank you
Jirka
In this listbox there are names of files (*.doc, *.xls) and some more information about each file.
My idea is when Iam creating new data record that i put 1) name of file, 2)some information about and then I click on button "explorer" where I can set up the path (eg. c:\abc\document.doc). Everything will be writed to table.
I find some explorer on this forum ( http://www.access-programmers.co.uk/forums/showthread.php?t=97787 ) but I have to modificate it and Iam not understand code well so I have to write every path by hand meantime.
Next problem is when somebody from net group want to run and use my database from my computer, the file path (c:\abc\document.doc) is incorrect for him.
The way how to solve it is to select relative path "\abc\document.doc" - this is the next thing I dont know how to write in code.
If somebody knows how to help me I will be very happy.
Thank you
Jirka