A Ajit Singh Registered User. Local time Today, 09:57 Joined Jul 11, 2013 Messages 34 Jan 25, 2014 #1 Need a formula which can capture filename for me. For example, I have a db saved at "C:\D\location\office\China.accdb". Is there a way to capture "China" in a query?
Need a formula which can capture filename for me. For example, I have a db saved at "C:\D\location\office\China.accdb". Is there a way to capture "China" in a query?
pr2-eugin Super Moderator Local time Today, 17:57 Joined Nov 30, 2011 Messages 8,487 Jan 27, 2014 #2 You can use CurrentProject.Name, to get the file name, then use Left function to get the find the file name. Code: ? Left(CurrentProject.Name, Instr(CurrentProject.Name, ".")-1)
You can use CurrentProject.Name, to get the file name, then use Left function to get the find the file name. Code: ? Left(CurrentProject.Name, Instr(CurrentProject.Name, ".")-1)
A Ajit Singh Registered User. Local time Today, 09:57 Joined Jul 11, 2013 Messages 34 Jan 29, 2014 #3 Awesome ..................thank you so much !!!!!!!!!!!!!!