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.

Combo Box problem

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Tony Williams - 07 May 2007 14:11 GMT
I have a combo control on a form that has when I select a value the form
reverts to the first record it doesn't stay with the current record. I have
a NotinList procedure that opens another form to enable the user to add to
the list of values in the combo control and when I close this second form
the new value is recorded but again the form goes to the first record and
doesn't stay with the current one. Anyone any ideas where I can start
looking for the reason why this happens?
Thanks
Tony
Rick Brandt - 07 May 2007 14:17 GMT
> I have a combo control on a form that has when I select a value the
> form reverts to the first record it doesn't stay with the current
[quoted text clipped - 5 lines]
> happens? Thanks
> Tony

That is what happens when a form is Requeried.  Are you issuing any Requery
commands on the form?

Signature

Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt   at   Hunter   dot   com

Tony Williams - 07 May 2007 15:24 GMT
Hi Rick, yes I'm using requery in the afterupdate event of the combo
control. However I can't think why now????
Tony
>> I have a combo control on a form that has when I select a value the
>> form reverts to the first record it doesn't stay with the current
[quoted text clipped - 8 lines]
> That is what happens when a form is Requeried.  Are you issuing any
> Requery commands on the form?
Tony Williams - 07 May 2007 15:26 GMT
Sorry Rick I know why I'm using requery. I have a tabcontrol and  use the
requery command to populate Dlookup controls on the tabcontrol based on the
value in the combo control. Any other way round this?
Thanks
Tony
>> I have a combo control on a form that has when I select a value the
>> form reverts to the first record it doesn't stay with the current
[quoted text clipped - 8 lines]
> That is what happens when a form is Requeried.  Are you issuing any
> Requery commands on the form?
Rick Brandt - 07 May 2007 15:34 GMT
> Sorry Rick I know why I'm using requery. I have a tabcontrol and  use
> the requery command to populate Dlookup controls on the tabcontrol
> based on the value in the combo control. Any other way round this?

Use Refresh or Recalc instead.  Or you can issue Requery on those specific
controls instead of on the form.

Signature

Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt   at   Hunter   dot   com

Tony Williams - 07 May 2007 17:13 GMT
Hi Rick I can't find Refresh or Recalc in the list of Docmd options. How do
I refresh my tabcontrol?
Thanks
Tony
>> Sorry Rick I know why I'm using requery. I have a tabcontrol and  use
>> the requery command to populate Dlookup controls on the tabcontrol
>> based on the value in the combo control. Any other way round this?
>
> Use Refresh or Recalc instead.  Or you can issue Requery on those specific
> controls instead of on the form.
Tony Williams - 07 May 2007 17:18 GMT
Sorry Rick found it in Help Me.Refresh
Thanks for the pointer
Tony
>> Sorry Rick I know why I'm using requery. I have a tabcontrol and  use
>> the requery command to populate Dlookup controls on the tabcontrol
>> based on the value in the combo control. Any other way round this?
>
> Use Refresh or Recalc instead.  Or you can issue Requery on those specific
> controls instead of on the form.
 
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.