Three fields shown together.

Aeon.Divine

< Random Learner. >
Local time
Today, 00:00
Joined
Mar 25, 2008
Messages
55
This must be in the big BASIC KNOWLEDGE BOOK OF ACCESS. But i honestly don't know how it's done, so:

Lets say we have three fields, "description", "color" and "material", this fields are taken from a query by a report. And the report has to show all three of them together in the same texbox. Not only has the report to show them together, but to link them in a sentence like this:

[DESCRIPTION] + "In color" + [COLOR] + "Constructed with" + [MATERIAL]

So then, what should i write in the control of the textbox that should display all this ? Or should this be done in VB ?
 
=[DESCRIPTION] & "In color" & [COLOR] & "Constructed with" & [MATERIAL]

presumably you'll want to add some spaces in there.
 
I tried that way, but access tells me thats a non valid control. It also states something about a circular reference. Whats that ?
 
In some DBMSs "Description" is a reserved word. That could be your problem and if so, you'll need to qualify it.

Are the field names spelled correctly? Are you referring to column names or control names?
 
Also, make sure you don't have a control with any of those names (which is what the wizard will create). Access can get confused when a field and control have the same name.
 
It seems like the "Description" field is definitively the problem, its a field refered in a query. But the textbox can show without any problem the description field alone, it just cannot show the description field along with colour or material. Colour an material field show themselves if i chain them in the textbox as you show me, but no field can showitself along with description, even if i write it with the whole location to prevent errors. And yes, the fields are definitively spelled correctly.
 
Did you read post 5?
 
Nah, i thing we posted almost at the same time, i'm checking now. It seems like there are no controls called description inside the report. Refering to the field stating the origin should fix the "DMBS" deal, right ? Cause it doesnt...
 
Last edited:
I'll bet a frosty cold one that there is a control named description (we Nevadans like gambling). Won't be the first bet I've lost, but I win more than I lose. :D

Can you post a sample db?
 
I'll post it tomorrow when i return to work. You'll have you bet, and if you get to win, then i'll win as well.
 
Mi database is way too complex to simplify it, so, heres just the form, i've erased the query origin control, the "Descripcion" field was obviously included there. Im Argentinian, so my file is in spanish, hope you don't mind, has practicaly no diference at all. Good luck finding the control.
 

Attachments

Is this a winner?
 

Attachments

  • FrostyColdOne.JPG
    FrostyColdOne.JPG
    65.1 KB · Views: 182
!!! Now i get what you were saying! I knew that was there, but i mixed up my definition of control and source or origin, so i was searching for a second control, as if the error would be caused by multiple controls. Now's fixed, and running damn well, thanks pbaldy. im in your debt.

Let there be rep!
 
Keep the rep, send Argentinian wine! :p :D

Glad we got it sorted out.
 

Users who are viewing this thread

Back
Top Bottom