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 Programming / May 2007

Tip: Looking for answers? Try searching our database.

Update combo from table

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jped - 01 May 2007 22:08 GMT
Hi, I am working on a database I did not create, always fun.  I have a form
with a combo box on it for client name.  There is a button to add a new
client.  When you click on it, it brings up the table and you enter in all
the client information.  This particular form only needs the client name.  Is
there a way, when you close the table, to have the client name combo box
update so the user doesn't have to reload the whole form?  What happens is
the user will fill in a lot of information on this form, realize they need to
add a client, do that, then have to re-type everything because they had to
reload the whole form.

Thanks for your help!
John W. Vinson - 01 May 2007 23:03 GMT
>This particular form only needs the client name.  Is
>there a way, when you close the table, to have the client name combo box
>update so the user doesn't have to reload the whole form?

Sure. Add a line in the button's Click event, or the afterupdate event of the
form for adding the client information, to Requery the combo:

Forms!NameOfYourForm!NameOfYourCombo.Requery

            John W. Vinson [MVP]
jped - 01 May 2007 23:16 GMT
Thanks for your help!

> >This particular form only needs the client name.  Is
> >there a way, when you close the table, to have the client name combo box
[quoted text clipped - 6 lines]
>
>              John W. Vinson [MVP]
Aaron Kempf - 02 May 2007 21:18 GMT
I woudl reccomend me.ControlName.requery

I rename forms so often it makes me sick to hard-code form names in VBA

> >This particular form only needs the client name.  Is
> >there a way, when you close the table, to have the client name combo box
[quoted text clipped - 6 lines]
>
>              John W. Vinson [MVP]
 
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



©2008 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.