K
kelvin H via AccessMonster.com
Is it possible to Requery the result of list which is in another form ?
Thanks
Thanks
kelvin said:Is it possible to Requery the result of list which is in another form ?
Marshall Barton said:Sure, as long as the other form is open, just reference the
object that you want to operate on. If it's another form,
use something like:
Forms!otherform.Requery
If it's a list/combo box control:
Forms!otherform.the control.Requery
Amy said:If that doesn't work, you may want to try something like
Forms!otherform.Controls("the control").Requery
Or
Me.tableName_Subform.Controls("the control").Requery
I found recently that this was the only way I could get it to work for me.
Marshall Barton said:Amy said:If that doesn't work, you may want to try something like
Forms!otherform.Controls("the control").Requery
Or
Me.tableName_Subform.Controls("the control").Requery
I found recently that this was the only way I could get it to work for me.
Amy, FYI,
The syntax:
Forms!otherform.Controls("the control").Requery
is equivalent to:
Forms!otherform.[the control].Requery
and the square brackets are only needed when the control
name contains a non-alphanumeric character (e.g. a space).