Subform update 
Author Message
 Subform update

Hello
I have made Form containing one subform based on Table. How can I change
subform source of records. I have tried to update subform RecordSource by
opening Subform :

DoCmd.OpenForm ("subform")
Forms!subform.RecordSource = sqltekst

but changes do not appear in subform in the main Form (already opened)
Thanx for any help

Robert Samul



Mon, 25 Apr 2005 21:13:51 GMT  
 Subform update

Quote:

>Hello
>I have made Form containing one subform based on Table. How can I change
>subform source of records. I have tried to update subform RecordSource by
>opening Subform :

>DoCmd.OpenForm ("subform")
>Forms!subform.RecordSource = sqltekst

A subform is not really an "open" form.  If it's visible
within the main report, then the main form can refer to it
like this:

Me.subformcontrolname.Form.RecordSource = sqltekst

--
Marsh
MVP [MS Access]



Wed, 27 Apr 2005 00:50:20 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Having Subform update all rows

2. updating a field in a form from a subform

3. updating subform

4. updating the contents of a subform from an unbound listbox

5. Updating subform data

6. Subform reference error Update

7. Subform not updating help!

8. Access 97 - Subform access triggers update for Main Form

9. Update subForm

10. Update list based on Subform.

11. Referencing a field on a SubForm within a Subform

12. Control name of subform from code behind subform

 

 
Powered by phpBB® Forum Software