Newbies Rick6823 Posted May 7, 2004 Newbies Posted May 7, 2004 Hello; I currently have a product database (photo catalog) and I'm having a difficult time using string functions to create a calculated field based on the 'File Name' field. I've named the product images with the product number (ex. rh0001.jpg). I'm trying to calculate the 'product number' field by stripping the .jpg from the 'File Name' field (ex. rh0001). I've tried the formula: Product Number = File Name - Right(File Name, 4) and I get 0001 as a result. Does anyone know how to just strip the file extension from the File Name field? Thanks in Advance for your help!! Rick
-Queue- Posted May 7, 2004 Posted May 7, 2004 Substitute( field, ".jpg", "" ) or in general Left( field, Length( field ) - 4 )
Newbies Rick6823 Posted May 7, 2004 Author Newbies Posted May 7, 2004 Thanks Queue! I appreciate it very much!
Recommended Posts
This topic is 7574 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now