Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Defualt value in subform

Status
Not open for further replies.

DraGo150

IS-IT--Management
May 6, 2009
11
US
I know this will probably very easy to fix but it is driving me crazy..

I have a main form (frm_InventoryData) with a subform (frm_Transfer_sub).
On the main form there is a combo box [Location] pulling from (tbl_Cubical, [Section], and I have the [From] Default Value on the subform pulling ( =([Forms]![frm_InventoryData]![Location]) ) .

The problem is that it is pulling the primary key instead of the text which is displayed on the main form [Location]. I have even tried to change the Control Source to point to the main form and it is doing the same thing.

Please help, and enlighten me.
 
Why would you ever want to store text rather than the key value? This is not a typical usage of primary and foreign keys.

If you really need to store the text, change the Row Source of the combo box to exclude the key field.

Duane
Hook'D on Access
MS Access MVP
 
On your combo box under format set Column count to 2 and Coulmn widths to 0;3

Herman
Say no to macros
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top