property-problem with subforms 
Author Message
 property-problem with subforms

hello,

i want to change the properties of a subform (AllowEdits, AllowDeletions,
AllowAdditions und DataEntry) by a VB-Code. If the first recordset is
active, everything works great. but if it isn't, there comes an
error-message:

(run-time-error 2455, "Sie haben einen Ausdruck eingegeben, der einen
unzul?ssigen Verweis auf die Eigenschaft Form/Report enth?lt".)
--> this means, that this property isn't available for this form.

frmPerson is the mainform, here, everything works fine. with subform
frmsubKommunikation the thing only works, if the first recordset is active.
Changing the active recordset to the first by code doesn't help either...

who can help me??

Lukas Rueegg

this is the code-fragment:

    With Forms!frmperson
        .AllowDeletions = L?schen
        .AllowAdditions = Hinzufgen
        .AllowEdits = ?ndern
        .DataEntry = Hinzufgen
        .lblStatus.Caption = Status
    End With

    With Forms![frmperson]![frmsubKommunikation].Form    ******---> here
comes the error
        .AllowDeletions = L?schen
        .AllowAdditions = ?ndern
        .AllowEdits = ?ndern
        .DataEntry = Hinzufgen
    End With



Tue, 25 Jul 2000 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Cycle property in subforms

2. Nested Subforms problem

3. Problem with DATA-Control in SubForms

4. Problem with Property-Object Type-Property

5. problem with property set in Properties Window

6. forms and subforms hwo can I link two subforms with two different forms ?

7. Requery a subforms recordsource

8. snycing subforms

9. use of Subforms

10. No Subforms

11. Option Group & SubForms

12. iterate through all subforms?

 

 
Powered by phpBB® Forum Software