Question : get name of the opened file

Hi, I am using .accdR file. Some of my clever users rename files to .accdB and after that get access to tables, the VBA code is locked. I would like to avoid direct access to the tables.

So I need to implememt function which will read what file opened if it is .accdR then I will do linked tables and all other stuff which i curently do. If file name is .accdB I will show error and close the application.

Now how do I get open file name/extension into the string ?

thanks,
Maksim

Answer : get name of the opened file

I solved it . Somehow I ruined layout .
So I preesed
1 Window ( Top tool bar menu)
2) reset Windows LayOut
and got Find /replace Dialog
Random Solutions  
 
programming4us programming4us