Visual Basic file path?
I've written a visual basic program which reads in files from an access database. It reads the files off my memory stick but I need to copy the program onto a CD but if I do it won't read the data in.
Just now the lines of code which read in the data are
' filename = "F:\'the path name' \questions1.mdb" '
I know to make it read it regerdless of where it's saved is something to do with app.path but I'm not sure where to put it.
Would it just be filename = app.path/questions1.mdb?
Thanks for any help.
|