![]() |
#9
|
||||
|
||||
![]()
If you are getting a 'not valid file name error' then it is likely that a file with that name doesn't exist.
There is a difference between cstrPath and strPath - are you sure you are using the right variable when you open the connEmp? It looks like you intended to build the full path by getting the current path and appending the constant to point inside a folder BUT your code is not quite doing that. Add the following lines before the connEmp.Open line to check the value of cstrPath and strPath Debug.Print cstrPath Debug.Print strPath
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
tingker | Word VBA | 4 | 01-08-2015 08:58 PM |
![]() |
rsrasc | Word VBA | 1 | 10-22-2014 03:09 PM |
![]() |
rsrasc | Word VBA | 4 | 03-28-2014 01:31 PM |
Creating a MACRO | Nikb3522 | Word VBA | 0 | 10-21-2010 05:55 PM |
creating macro | steveb | Word VBA | 0 | 08-14-2010 01:29 AM |