boxofrox
Sep 24 2004, 10:19 AM
I need to query 3 fields (length, width and thickness) into one. Currently the three fields are part of a very large query through which I generate a report. Do I need a separate query to build this and then include that query in the final larger query? or is there a way to include it in the current query? (was that confusing enough for everyone???)
Cindy
danishani
Sep 24 2004, 10:23 AM
hi Cindy,
Well, u can add them together in your report, which probably a easy way:
In an unbound textbox u can do something like this, do u want to seperate them by a space or do u want them all together in one line:
all seperated with a space:
=[length]&" "&[width]&" "&[thickness]
all without a space:
=[length] & [width] & [thickness]
HTH
Daniel
boxofrox
Sep 24 2004, 10:32 AM
So basically I can leave the query the way it is and just combine them in the report - I knew it was absurdly simple... must have more coffee.
Thanks!
Cindy
danishani
Sep 24 2004, 10:39 AM
Cindy,
Yes, well u can do it a query, but can give some trouble if its all combined from a lot of calculations, so in this case its maybe better to do this in your report.
Daniel
boxofrox
Sep 24 2004, 10:43 AM
Need more braincells to go w/ the coffee: where does the code string go?
preston
Sep 24 2004, 10:53 AM
Place his recommended string:
=[length]&" "&[width]&" "&[thickness]
in the Control Source of the textbox you want to show it.

You in Las Vegas or Reno?
boxofrox
Sep 24 2004, 11:03 AM
I'm in Vegas - I'm getting a very strange string in the textbox after I put this code in. I put in three arbitrary numbers in Length/Width/Thickness - 2/3/1 - and I get 2 x 4050 x 1
Ideas?
Cindy
preston
Sep 24 2004, 11:31 AM
Can you attach a sample database?
I'm in Las Vegas as well.
boxofrox
Sep 24 2004, 11:44 AM
Well the db is very large. The field actually exists in a subreport.
Table - Query - Form - Subreport
The fields are text fields. There are no other code strings operating w/in the subreport.
hope this helps
preston
Sep 24 2004, 12:02 PM
Is the field named Width? It may be a reserved word. Maybe try changing that field name?
boxofrox
Sep 24 2004, 12:06 PM
Yup! That was the problem - thank you so much. Where are you in NV?
preston
Sep 24 2004, 12:45 PM
I live on Silverado Ranch, Work over off Sunset by the Airport.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.