FoxProProgrammer
Programmer
Hi folks,
My report is based on a query from three related tables. A field in the report named [Serial Number].[US Number] contains a number such as 12, 124, etc. I want to concatenate the string "US0612-" with the US Number to produce US0612-12, US0612-124, etc. in the detail section.
I first tried to concatenate the string in the Control Source of the text box in the detail section. That didn't work.
Next I tried to concatenate the string with the field name in the query that is stored in the Report's Record Source. The query returns the correct results when I run it in Design View, but when I run the report it asks me to enter the USNum, which is the name of the expression. Here is the relevant portion of my query.
Select "US0612-" & Trim(Str([Serial Number].[US Number])) As USNum, ... From .... Inner Join....
Thanks in advance for any ideas on what I did wrong.
dz
dzaccess@yahoo.com
My report is based on a query from three related tables. A field in the report named [Serial Number].[US Number] contains a number such as 12, 124, etc. I want to concatenate the string "US0612-" with the US Number to produce US0612-12, US0612-124, etc. in the detail section.
I first tried to concatenate the string in the Control Source of the text box in the detail section. That didn't work.
Next I tried to concatenate the string with the field name in the query that is stored in the Report's Record Source. The query returns the correct results when I run it in Design View, but when I run the report it asks me to enter the USNum, which is the name of the expression. Here is the relevant portion of my query.
Select "US0612-" & Trim(Str([Serial Number].[US Number])) As USNum, ... From .... Inner Join....
Thanks in advance for any ideas on what I did wrong.
dz
dzaccess@yahoo.com