Hello all, this one slightly beyond my skills.
I was working on an inherited database dump from a legacy platform that is no longer being subscribed to. I can easily rebuild it just linking the relationships up.
There was a table used as a helper table to keep many static lists but splits them up like this:
ID | Description | Column | Code | Value
The column being the name of the field in the main tables and storing the number instead of the named category (Value).
I am trying to do a Dlookup so in a Table it refers to a Code, which is contained in the helper table above. One of the issues is the helper table Code is Text whereas in the main tables the Code is a datatype Number. I have bypassed the problem by converting the Code to type number and Making a new table with codes and values into a dedicated table.
Here is an example snippet of the records:
I was hoping someone could put me right in case I wanted to build queries where I could present the names instead of the values using Dlookup?
Here was the builder code I used before giving up that route as it was returning the first record only through all the results and not what the name was:
DLookUp("Value","ColumnCodes","Description='Transactions'" And "[*Code] = [TransactionTypeCode]")
I was working on an inherited database dump from a legacy platform that is no longer being subscribed to. I can easily rebuild it just linking the relationships up.
There was a table used as a helper table to keep many static lists but splits them up like this:
ID | Description | Column | Code | Value
The column being the name of the field in the main tables and storing the number instead of the named category (Value).
I am trying to do a Dlookup so in a Table it refers to a Code, which is contained in the helper table above. One of the issues is the helper table Code is Text whereas in the main tables the Code is a datatype Number. I have bypassed the problem by converting the Code to type number and Making a new table with codes and values into a dedicated table.
Here is an example snippet of the records:
Code:
ID Description Column Code Value
27 CalendarItems PriorityCode 0 Normal
28 CalendarItems PriorityCode 1 Low
29 CalendarItems PriorityCode 2 Important
30 CalendarItems PriorityCode 3 Critical
31 Transactions TransactionTypeCode 0 Unknown
32 Transactions TransactionTypeCode 1 Segmented Payment
33 Transactions TransactionTypeCode 2 Segmented Gift
34 Transactions TransactionTypeCode 3 Pledge/Payment
35 Transactions TransactionTypeCode 4 Pledge
36 Transactions TransactionTypeCode 5 Gift
I was hoping someone could put me right in case I wanted to build queries where I could present the names instead of the values using Dlookup?
Here was the builder code I used before giving up that route as it was returning the first record only through all the results and not what the name was:
DLookUp("Value","ColumnCodes","Description='Transactions'" And "[*Code] = [TransactionTypeCode]")