Hi, I'm having trouble using a lookup field with foreign keys containing formatting that violates the lookup field's data type - I was under the impression that formatting did not affect the underlying data stored.
For example, if I have a numerical foreign key with formatting 0000-0000-0000 applied, I cannot use it in a numerical lookup field because of the dashes (-) in the formatting which Access seems to believe is also part of the underlying data.
However, I have noticed when opening the lookup query the Query Designer, the Property Sheet for the fields contains a "format" option. I had hoped this would let you specify the format of the foreign key, but any changes to this option seems to be lost as soon as I exit the Query Designer, even after saving.
Thanks for you help
For example, if I have a numerical foreign key with formatting 0000-0000-0000 applied, I cannot use it in a numerical lookup field because of the dashes (-) in the formatting which Access seems to believe is also part of the underlying data.
However, I have noticed when opening the lookup query the Query Designer, the Property Sheet for the fields contains a "format" option. I had hoped this would let you specify the format of the foreign key, but any changes to this option seems to be lost as soon as I exit the Query Designer, even after saving.
Thanks for you help