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.

Requery?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
TKM - 30 May 2007 21:43 GMT
I have a main form A that has a Combo box for part selections. I also have a
button next to the txt field where it opens a little form to add additional
parts as needed. However I cant get the part to show up in Form A (main Form)
after I have added it to form B. I have tried every type of requerry on each
form and control but nothing works. Please help.
Ripper - 30 May 2007 22:07 GMT
I have had similar issues with combo boxes.  My fix was in the OnClose event
of the Add Part Form, I close and re-open the main form.  That forces the
combo box to requery.

Signature

Rip

> I have a main form A that has a Combo box for part selections. I also have a
> button next to the txt field where it opens a little form to add additional
> parts as needed. However I cant get the part to show up in Form A (main Form)
> after I have added it to form B. I have tried every type of requerry on each
> form and control but nothing works. Please help.
TKM - 30 May 2007 23:36 GMT
Yes I have done that in the past but you would think with Access 2007 they
would have fixed it. Funny if I place a button next to the cbo it works fine.
But no way will it work on the cbo dbl clck property.
Go figure?

> I have had similar issues with combo boxes.  My fix was in the OnClose event
> of the Add Part Form, I close and re-open the main form.  That forces the
[quoted text clipped - 5 lines]
> > after I have added it to form B. I have tried every type of requerry on each
> > form and control but nothing works. Please help.
Marshall Barton - 31 May 2007 02:08 GMT
>I have a main form A that has a Combo box for part selections. I also have a
>button next to the txt field where it opens a little form to add additional
>parts as needed. However I cant get the part to show up in Form A (main Form)
>after I have added it to form B. I have tried every type of requerry on each
>form and control but nothing works.

There must be something funny in your arrangement  ;-)

After the "little" form closes, the code in the button's
click event procedure should resume (you are opening the
little form in Dialog mode, right?) and then you can
requery.

    DoCmd.OpenForm "littleform", WindowMode:=acDialog

    Me.combobox.Requery
or
    Me.Requery

Signature

Marsh
MVP [MS Access]

 
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.