HomeForum
Welcome, Guest

The field has the sign trailing
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: The field has the sign trailing

The field has the sign trailing 10 months ago #3368

  • Ron
  • OFFLINE
  • Junior Boarder
  • Posts: 22
  • Karma: 0
Visual Importer can easily load a value from a text file which looks like this, -1234.56, into a money field in SQL server. But it errors when the field has the sign trailing, like this, 1234.56-. Can you think of a way around this error?

Ron

Re: The field has the sign trailing 10 months ago #3369

  • admin
  • OFFLINE
  • Moderator
  • Posts: 2191
  • Karma: 12
Try these calculations

Iif(POS('-','1000-')>0,'-'+Replace('1000-','-',''),'XX')

Iif(POS('-',[FIELDNAME])>0,'-'+Replace('[FIELDNAME]','-',''),[FIELDNAME])

Mike
  • Page:
  • 1
Time to create page: 0.14 seconds

Testimonials

Development team listens to it's customers and implements new features in days sometimes hours.

Paul Gibb,
MPS

User Login

You only need to log in or register to use our support forum



Our customers

BP

BBC

HSBC


Databases we work with

Go to top