
Signature
There's ALWAYS more than one way to skin a cat!
Answers/posts based on Access 2000/2003
The Store table has two columns, an StoreID and the StoreName. The combo box
column looks up the store name in the store table and returns the store name
to the combo box but column 1 is the bound column (StoreID). The StoreID
field in tblPlants is a numeric field and the foreign key to the StoreID in
tblStore.
What I am doing is adding a new record. When the user views this field, I
would like Unknown to be displayed (StoreID = 0, (Numeric) StoreName ="
Unknown"). As mentioned before, this is entry already in tblStore.
> What is the datatype of the field you're trying to enter "Unknown" into?
Jason - 28 May 2008 09:07 GMT
You can't set a string value for a numeric field (assuming StoreID is a
number). Even though text is displayed it is the numeric value that is
stored and then shows the text from the bound table of the combo box. You
need a record in the table where STOREID = 0 and STORENAME = "unknown". Make
the field's default value = 0.
> The Store table has two columns, an StoreID and the StoreName. The combo box
> column looks up the store name in the store table and returns the store name
[quoted text clipped - 7 lines]
>
> > What is the datatype of the field you're trying to enter "Unknown" into?