![]() |
| ||
| Help with code modification I'll start off saying I am not a programmer. I am making a database that imports data from Word forms. It requires code and I found some that works almost perfectly for me at http://msdn.microsoft.com/en-us/libr...ffice.10).aspx It does exactly what I need. The only thing that would make this code better would be to use relative references to the database and imported files. strDocName = "C:\Contracts\" & _ In a previous database, I was able to use CurrentProject.Path to allow for relative paths, but I can't figure out how to get that to work with this code. Can anyone please help me by letting me know how to set up a relative path for the referencing. I am planning on storing the database and files to be imported in the same folder. Thank you |
| ||
| Re: Help with code modification So again I'm not a programmer, but here is the finished product after searching through a lot of websites. It works so if anyone is ever trying to take Word form data and import it via Access, use this code. It will search all of the .doc files within the directory containing the DB and after it imports them, rename the file to have an "xx" in the front. It will not import those files again. Sub GetWordData() This would be much more efficient if a loop was set up to read through the word form fields, but I couldn't figure out how to get that to work. |
| All times are GMT -4. The time now is 8:43 am. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC