M
mallettdj
The quick question (Access 2003): If I store an expression in a text
field in a table, can a query convert it from text and use it? The
expression would contain fields from another table that is joined when
the query runs.
The longer explanation:
I have a table which is a list of "activities" to track the progress
of manuscript submissions to a journal. The table (tblActivities)
only contains two fields - ActivityID and ActivityDesc. There are
about 25 activities.
The data tables involved are a main manuscript table and a sub-table
of the activities for each manuscript. Each specific activity
requires different fields to be filled in the sub-table.
Rather than show all the fields for an activity in some forms/reports,
I would like to display a short summary "sentence". And rather than
build it using if-then-else or select-case, I was wondering if it was
possible to add a field to tblActivities and store an expression for
each specific activity - then have the query interpret the
expression. The expression would be using fields from the sub-table.
I've tried various things and searched through Help and the
newsgroups, but can't seem to find it and am not even sure what to
search on. All I can get it to do is display the actual expression -
not the result of the expression. Probably because it's stored in a
text field and I need to convert it somehow. I've tried Eval several
different ways, but not sure if I managed to try it the right way.
I'm trying to store something like: "Submission received: " & [aDate]
& " Title: " & [msTitle]
Have tried it with and without an "=" at front.
This is kind of long-winded and still I'm not sure I've explained it
well. Just curious if a query can convert a text expression from a
table field to one it can use. If so, can you point me in the right
direction?
Thanks for any advice,
Deb
field in a table, can a query convert it from text and use it? The
expression would contain fields from another table that is joined when
the query runs.
The longer explanation:
I have a table which is a list of "activities" to track the progress
of manuscript submissions to a journal. The table (tblActivities)
only contains two fields - ActivityID and ActivityDesc. There are
about 25 activities.
The data tables involved are a main manuscript table and a sub-table
of the activities for each manuscript. Each specific activity
requires different fields to be filled in the sub-table.
Rather than show all the fields for an activity in some forms/reports,
I would like to display a short summary "sentence". And rather than
build it using if-then-else or select-case, I was wondering if it was
possible to add a field to tblActivities and store an expression for
each specific activity - then have the query interpret the
expression. The expression would be using fields from the sub-table.
I've tried various things and searched through Help and the
newsgroups, but can't seem to find it and am not even sure what to
search on. All I can get it to do is display the actual expression -
not the result of the expression. Probably because it's stored in a
text field and I need to convert it somehow. I've tried Eval several
different ways, but not sure if I managed to try it the right way.
I'm trying to store something like: "Submission received: " & [aDate]
& " Title: " & [msTitle]
Have tried it with and without an "=" at front.
This is kind of long-winded and still I'm not sure I've explained it
well. Just curious if a query can convert a text expression from a
table field to one it can use. If so, can you point me in the right
direction?
Thanks for any advice,
Deb