Jump to content

This topic is 7574 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies
Posted

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

Posted

Substitute( field, ".jpg", "" )

or in general

Left( field, Length( field ) - 4 )

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.