Is this just to display the value for a report?
Are you actually wanting the value in the table?
Are you wanting to have the default of this field to be this certain value?
From your picture, it looks like this field ("GTR-DESCRIPTION") is already a calculated field, it is just set up to return a blank.
Just place whatever you want to be returned between the two single quotes, i.e.
Code:GTR-DESCRIPTION:'My Text Here'
When I run the report, I want every row to contain that specific value. Example, in that field I want it to say ARGL, so when I run the report, every row should have ARGL.
JoeM, when I do that, i get "the expression you entered contains invalid syntax."
If not single quotes, try double-quotes:
orCode:GTR-DESCRIPTION:'ARGL'
You are doing all this in the underlying query itself (and not trying trying to do it directly on the Report, right?)Code:GTR-DESCRIPTION:"ARGL"
single quote worked! thank you, I am doing it in design view.
how do I mark this topic solved?
See: https://www.accessforums.net/forum-s...lved-1828.htmlhow do I mark this topic solved?
Look at what you have in the Field row:
That means that you are hard-coding EVERY record to return blank for this calculated field.Code:GTR-DESCRIPTION:''
Then you are entering 'argl' in the Criteria row.
That is telling Access to return every record where the field is equal to 'argl'. Since you set everything equal to blank, nothing meets that criteria and no records are returned.
If you are trying to hard-code the field to 'argl', you need to put this on the Field row, just like we showed up in post #6.
There shouldn't be a need to put anything on the Criteria row, as you aren't trying to limit any records selected here, but just trying to hard-code a value.Code:GTR-DESCRIPTION:'argl'