|
-
Jun 22nd, 2006, 01:12 PM
#1
Thread Starter
Lively Member
[RESOLVED] Refresh a subform
Anyone know how would you go about refreshing a subform?
-
Jun 22nd, 2006, 01:26 PM
#2
JPnyc rocks!! (Just ask him!)
If u have your answer please go to the thread tools and click "Mark Thread Resolved"
-
Jun 22nd, 2006, 01:41 PM
#3
Thread Starter
Lively Member
Re: Refresh a subform
For my purposes, I carry out the following to refresh the form without it being a subform:
me refers to the form Observation
VB Code:
Me.RecordsetClone.Requery
Me.RecordsetClone.MoveFirst
If Not Me.RecordsetClone.EOF Then
Me.RecordsetClone.FindFirst "[ID] = " & getCurrentID
Me.Bookmark = Me.RecordsetClone.Bookmark
End If
If this form is nested or a subform of the other, I tried this but to no avail because it cannot find the observation form:
VB Code:
Forms("Observation").RecordsetClone.Requery
Can you do it thru the subform itself, if so how?
-
Jun 22nd, 2006, 01:47 PM
#4
Thread Starter
Lively Member
Re: Refresh a subform
Thanks Static,
but is there a way to requery the subform to a set record as shown in my example?
-
Jun 22nd, 2006, 01:52 PM
#5
Thread Starter
Lively Member
Re: Refresh a subform
Hangon, I missed the form property in the control object. Looks like I can do it. The form property is a reference to the subform.
-
Jun 22nd, 2006, 01:56 PM
#6
Re: Refresh a subform
yes.. u can set all the subform properties from the mainform... like any other object on the form.
hitting items ON the subform requires you to go to the design view of the subform to code it.
JPnyc rocks!! (Just ask him!)
If u have your answer please go to the thread tools and click "Mark Thread Resolved"
-
Jun 22nd, 2006, 02:04 PM
#7
Thread Starter
Lively Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|