I have a web app form in which I'm using a data macro to update a field in a table. I'm trying to update the field with a short text string that I am building out of other fields in the table. My code looks like this:
The Macro returns a data error because [tbl1].[fld1] and [tbl1].[fld2] are numeric values and the macro can't concatenate 2 different data types. I can't find the syntax to convert the numeric value to text within this macro.
Can someone help?
Thanks,
Sup
Code:
For Each Record in tbl1
Where Condition = [tbl1].[fldNew] Is Null
Edit Record
Set Field
Name [fldNew]
Value = "S" + [tbl1].[fld1] + "D" + [tbl1].[fld2]
End Edit Record
The Macro returns a data error because [tbl1].[fld1] and [tbl1].[fld2] are numeric values and the macro can't concatenate 2 different data types. I can't find the syntax to convert the numeric value to text within this macro.
Can someone help?
Thanks,
Sup