I need to compare a value from one table and return a result from another ie Decode
From: julianp (julianp.14shm4_at_nospam.MSAccessForum.com)
Date: 04/15/04
- Next message: julianp: "I need to compare a value from one table and return a result from another ie Decode"
- Previous message: 胡俊中: "Re: 北京快讯"
- Next in thread: julianp: "Re: I need to compare a value from one table and return a result from another ie Decode"
- Reply: julianp: "Re: I need to compare a value from one table and return a result from another ie Decode"
- Reply: julianp: "Re: I need to compare a value from one table and return a result from another ie Decode"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 15 Apr 2004 02:53:21 -0500
I am trying to use the design view in Access XP to construct a query and
subsequently a report.
However I need to decode some values by comparing the coded results of
each column of the query with the code_decode table and then returning
a decoded value from this table.
At present I am trying to workout what I should be entering in the
criteria box in the query designer to produce the following:
where decode.code_ref=table1.fieldname and
decode.code_val=table1.fieldvalue then return the value contained in
decode.decode_val
Table name decode
code_ref correspondes to the field in the table that we are decoding
code_val is the value assigned to coded data
decode_val is the translation of the code_val into plain English
I am not very good at entering SQL code and the query is already very
long so the sql is complex. Thus I am trying to use the Access query
builder where possible.
Any suggestions very gratefully received
Access is actually connected to a MYSQL Database through ODBC.
Julian
------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~View and post usenet messages directly from http://www.ExcelForum.com/
- Next message: julianp: "I need to compare a value from one table and return a result from another ie Decode"
- Previous message: 胡俊中: "Re: 北京快讯"
- Next in thread: julianp: "Re: I need to compare a value from one table and return a result from another ie Decode"
- Reply: julianp: "Re: I need to compare a value from one table and return a result from another ie Decode"
- Reply: julianp: "Re: I need to compare a value from one table and return a result from another ie Decode"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|