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

Refresh the List of a Combo Box based on a parametric query

Status
Not open for further replies.

phabio

Technical User
Sep 16, 2002
6
0
0
IT
I have a Mask with a Text Box and a Combo Box.
The List of the Combo Box is produced by a SELECT (at the bottom of the page) with the WHERE condition that depends on the content of the Text Box.
The select works the first time that I open the Mask, then if I change the content of the Text Box the List doesn't change anymore.

Please help me, How can I refresh the List without closing and reopening the Mask???

Thank you

Fabio (Rome)


--------------------------------------------------
SELECT
[NetworkNodeType].[NetworkNodeTypeID],
[NetworkNodeType].[NetworkNodeTypeNome], [NetworkNodeOfNetworkType].[ConnectNetworkType], [NetworkNodeOfNetworkType].[ConnectNetworkNodeType]
FROM
NetworkNodeType
INNER JOIN
NetworkNodeOfNetworkType
ON
[NetworkNodeType].[NetworkNodeTypeID]=[NetworkNodeOfNetworkType].[ConnectNetworkNodeType]
WHERE
((([NetworkNodeOfNetworkType].[ConnectNetworkType])=
[Forms]![M_NetworkNodeInventory]![NetworkNode_NetworkType]));
----------------------------------------
 

Put something like this air code in the after update event of your text box:

Me.mycomboboxname.requery
Robert Berman
Data Base consultant
Vulcan Software Services
thornmastr@yahoo.com
 
Me.mycomboboxname.requery !!!

Great! It works perfectly.


Fabio (Rome)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top