Requery Problem

G

Guest

Hi All
I wonder why this code :
Private Sub Form_Click()
Forms!Frmsearch!TBL7SF1.Requery
End Sub
about Requery a subform is working perfectly in 2007 version environment
but it isnot working in 2003 environment
- My database formatted in 2003 version
- in my form(Frmsearch) I have two subform separately and with click on each
displayed record in first one, related records should display in second
subform
 
R

RoyVidar

bijan said:
Hi All
I wonder why this code :
Private Sub Form_Click()
Forms!Frmsearch!TBL7SF1.Requery
End Sub
about Requery a subform is working perfectly in 2007 version
environment but it isnot working in 2003 environment
- My database formatted in 2003 version
- in my form(Frmsearch) I have two subform separately and with click
on each displayed record in first one, related records should
display in second subform

Some versions are perhaps more restrictive or sensitive with regards to
syntax.

When addressing subform properties and methods, I think, the Form
keyword is sometimes required

Forms!Frmsearch!TBL7SF1.Form.Requery

This is, if TBL7SF1 is really the subform *control* name (which may
differ from the name of the form, as viewed in the database window)

Some more info here
http://support.microsoft.com/?kbid=209099
 
G

Guest

Thank you Roy
As you said in 2003 envieronment I needed to add ".Form" behind my subform
and this address must be changed both in Form_click and it's subform query
criteria in record source.
Bijan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

requery not working 7
Bookmark Issue 7
Requery unbound textbox 1
Requery subform doesn't display all records 1
*REPOST* Re-Query Code was working, no longer is 2
Requery 2
REQUERY SUBFORM 4
Referencing a subform 4

Top