Message Boards

QRF: VBscript

Paul Sheemar, modified 3 Years ago.

QRF: VBscript

Post Date: 9/7/16 (Bronze, 5 Posts) Recent Posts

QRF design;

I have a VBScript in a design field.

if (tcJournalCode = "XXI")

then

CStr("test001")

else

Cstr("test002")

endif

It doesnt seem to work.

Is there anything aout the field I need to check for it to work? (I thought the script is pretty simple)

Paul Sheemar, modified 9 Years ago.

Re: QRF: VBscript

Post Date: 9/7/16 (Bronze, 5 Posts) Recent Posts

solution found.

the vbscript goes into the "OnFormat" section.

problem resolved.

Message place holder