Watermelon
Programmer
Hi,
Can anyone help me with this query? I'm trying to update a field in one table by setting it equal to a series of concatenated fields in the same table. I'd like to separarate each concatenated field with a comma only if the field is not empty and has some value in it.
Here's the code I have so far:
UPDATE Table1 SET Table1.Field1 = Table1.Field2 & ", " & Table1.Field3 & ", " & Table1.Field4;
Again, I'd only like these commas to be updated into field1 if the fields have some value in them.
Thanks,
Watermelon
Can anyone help me with this query? I'm trying to update a field in one table by setting it equal to a series of concatenated fields in the same table. I'd like to separarate each concatenated field with a comma only if the field is not empty and has some value in it.
Here's the code I have so far:
UPDATE Table1 SET Table1.Field1 = Table1.Field2 & ", " & Table1.Field3 & ", " & Table1.Field4;
Again, I'd only like these commas to be updated into field1 if the fields have some value in them.
Thanks,
Watermelon