Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Requery in a subform

Status
Not open for further replies.

dduffy

Technical User
Jul 30, 2002
20
IE
I have a requery function on a listbox. This runs fine when the listbox and the action (to tell when to requery) are in the main form. However if I base the action in the subform I get the error 'You can't use the ApplyFilter on this window'

I have checked the properties on the main and sub-form and they both are set to allow filters.

I am using list22.requery for the actual requery function, but as I say it works fine if I have the listbox and the button in the main form.

Is there some other property I am missing?
 
hi friend,

are u correctly refering to the listbox?

here exp. to refer to control in sub form and requery it:
[Forms]![frmMain]![FormSub].[Form]![control].requery

i hope its good 4 u.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top