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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Subform combo selections disapear/reapear

Status
Not open for further replies.

johnnybwis

Technical User
Mar 12, 2002
12
US
Subform choice is limited by mainform choice with
rowsource

SELECT DISTINCTROW Products.ProductName, Products.ProductID, Products.NumberPerUnit, Products.WeightPerThousand FROM Products WHERE (((Products.CustomerID)=[Forms]![Purchase Orders]![SupplierID])) ORDER BY Products.ProductName;

When the form is opened my Supplier in the main form is OK and the subform combobox choice is OK but then on the next record if the mainform has a different supplier the subform choice is blank until I click on that field which it then appears. Then all the following records will be OK also.

There is a requery on enter

How do I keep all the choices visible when the form is opened.
 
Hi

why are you not using the linkfields property of teh subform control to keep the mainform/subform in sync?

Hope this helps

Ken Reay
Freelance Solutions Developer
Boldon Information Systems Ltd
UK
kenneth.reaySPAMNOT@talk21.com
remove SPAMNOT to use
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top