P
Programmer - wannaB
Please Help me to understand This>> I am sure this is working, But I need
help understanding..
I created a table with 4 fields;
CCID Auto number – index field,
CCName – Simple text,
CCNum – Numeric representation of CCName,
CCDescription – Simple Text description of the record.
Then I added the CCID field to another table as a Lookup field Named
CP_CCID, using the lookup Wizard which created this query>> SELECT
Tbl_CurrencyCode.CCID, Tbl_CurrencyCode.CCName, Tbl_CurrencyCode.CCNum,
Tbl_CurrencyCode.CCDescription FROM Tbl_CurrencyCode ORDER BY [CCName]; <<
and when Prompted if I wanted to hide the index field (which was suggested) I
agreed, and clicked yes. ??This is where I get a bit confused?? I thought it
would be hidden from display, but still save the index field value in the
CP_CCID field for that record – HOWEVER when I look at the table the data in
that field is not the index number – UNLESS I modify the Column Width
Properties of the LookUp (from 0â€;1â€;1â€;4†to 1â€;1â€;1â€;4â€) Now I understand
that the 0†is what hides the first column of the lookup query fields
selected, BUT how can it not be displayed in the field after the lookup drop
down is gone, and why does it only display the next field in the dropdown
list???
Now I thought to my self what if I were to query on the CP_CCID field, and
low-n-behold the index number works, when I tell it to display all records
with index number < 5, that’s what it does even though it displays the text
characters of the CCName field.
AND if I query on the CP_CCID field for text I get “Type mismatch
criteriaâ€
SO That’s what I am looking at and I’m not even sure how to describe my
question, other then how does it do that, why does it do that???? Most
importantly Is this really a good idea to do this (I can only imagine the
confusion of the next guy who works on the database and see’s text data in a
field that he can’t query on with text)
help understanding..
I created a table with 4 fields;
CCID Auto number – index field,
CCName – Simple text,
CCNum – Numeric representation of CCName,
CCDescription – Simple Text description of the record.
Then I added the CCID field to another table as a Lookup field Named
CP_CCID, using the lookup Wizard which created this query>> SELECT
Tbl_CurrencyCode.CCID, Tbl_CurrencyCode.CCName, Tbl_CurrencyCode.CCNum,
Tbl_CurrencyCode.CCDescription FROM Tbl_CurrencyCode ORDER BY [CCName]; <<
and when Prompted if I wanted to hide the index field (which was suggested) I
agreed, and clicked yes. ??This is where I get a bit confused?? I thought it
would be hidden from display, but still save the index field value in the
CP_CCID field for that record – HOWEVER when I look at the table the data in
that field is not the index number – UNLESS I modify the Column Width
Properties of the LookUp (from 0â€;1â€;1â€;4†to 1â€;1â€;1â€;4â€) Now I understand
that the 0†is what hides the first column of the lookup query fields
selected, BUT how can it not be displayed in the field after the lookup drop
down is gone, and why does it only display the next field in the dropdown
list???
Now I thought to my self what if I were to query on the CP_CCID field, and
low-n-behold the index number works, when I tell it to display all records
with index number < 5, that’s what it does even though it displays the text
characters of the CCName field.
AND if I query on the CP_CCID field for text I get “Type mismatch
criteriaâ€
SO That’s what I am looking at and I’m not even sure how to describe my
question, other then how does it do that, why does it do that???? Most
importantly Is this really a good idea to do this (I can only imagine the
confusion of the next guy who works on the database and see’s text data in a
field that he can’t query on with text)