Hi, I am looking for a Macro/VBA code to implement in Access to accomplish a task in my database... I am hoping this is possible as it's a pretty simple task, but I'm not sure.
I have a database that will be shared with many people. The tables are linked to Excel files, which are updated hourly via an automatic reporting procedure. The Excel files are saved in a similar location on each user's machine (same folder name and path, for the most part), but the path name will need to be changed for each user to reflect their Windows user name.
So for example, when I look at my linked table manager, it shows all the tables have the following path: C:\Users\DataQueen\FolderName\FileName.xls
I want to have a prompt come up with the database is opened, so that each user has to enter their user name (i.e. I would enter "DataQueen"), and then the code would update all the paths for the linked tables based on the input, since everything would be the same across machines except the name of the local user.
Is this possible, and could someone help me out with the code for it? Thank you :)
I have a database that will be shared with many people. The tables are linked to Excel files, which are updated hourly via an automatic reporting procedure. The Excel files are saved in a similar location on each user's machine (same folder name and path, for the most part), but the path name will need to be changed for each user to reflect their Windows user name.
So for example, when I look at my linked table manager, it shows all the tables have the following path: C:\Users\DataQueen\FolderName\FileName.xls
I want to have a prompt come up with the database is opened, so that each user has to enter their user name (i.e. I would enter "DataQueen"), and then the code would update all the paths for the linked tables based on the input, since everything would be the same across machines except the name of the local user.
Is this possible, and could someone help me out with the code for it? Thank you :)