Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms / May 2007

Tip: Looking for answers? Try searching our database.

link a txtbox with a query

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Orlando - 22 May 2007 03:13 GMT
Hi guys, I am working in an Access Project and I want to connect one textbox
I have in the form with the criteria in the query (View) for the row source
for a combo box in the same form, what I want is for reduce the amount of
records shown in the combo box. I typed this lines in the criteria of the
fieldcategory in the query,
= [forms]![frmPopAddProductOrRecipe]![txtCategory]

but it doesn't recognize it.
Andy Hull - 22 May 2007 10:06 GMT
Hi Orlando

The combo box needs to be requeried whenever your text box is changed. Use
the After Update event of your text box like...

Private Sub txtCategory_AfterUpdate()
   Me.comboBoxName.Requery
End Sub

Regards

Andy Hull

> Hi guys, I am working in an Access Project and I want to connect one textbox
> I have in the form with the criteria in the query (View) for the row source
[quoted text clipped - 4 lines]
>
> but it doesn't recognize it.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.