Zum Hauptinhalt gehen

Suche

Suche

VB Script to multiply a database field

Kommentare

2 Kommentare

  • Avatar
    Peter Thane

    You probably need to make the field a Visual Basic Script type set as an Event Controlled Script and perform the VB OnNewRecord.

    When you want to reference the fields, you need to double click on the field in the list of Database fields in the column on the right (Script Assistant I think it is called) so you would have something like

    If (<Database field name and parameters>) = "1000's" then

    Value = (<second database field etc>)  * 1000 

    etc.

     

    0
  • Avatar
    Patrick Legg

    HI Pete, 

    Thank you, I have got it working now. The field type was set to text so I had to use CDbl to convert it. 

    All the best, 

     

    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.