Resync Recordset

I'm trying to resync a recordset with this piece of code :

Private Sub cmdAccept_Click()
    With DtEnviromentFly.rsFly_table_Grouping
        .AddNew
        !User = cmbName.Text
        !Group = dtUsers.Recordset!Sector
        !Local = txtCompany.Text
        !Return = txtDate.Text
        !Extension = txtPhone.Text
        !Contact = txtContact.Text
        .Update
        .Resync
    End With
    Me.MSHFlexFly.Refresh
End Sub

. Two things are not working :

1st .: I can't access Fields above with a shaped recordset (runtime error).
       See Shape Command :  SHAPE {SELECT * FROM `Fly`}  AS Fly_table COMPUTE Fly_table BY 'Group'
       See Hierarchy Info : rsFly_table_Grouping
        Fly_table


2nd.: If I use another data control to Add a record, my rsFly_table_Grouping recordset doesn't resync (runtime error - insufficient base table information for updating or refreshing).


What do I need ?

1st.: Access fields on Fly table using the rsFly_table_Grouping recordset.

2nd.: Resync MSHFlexGrid - MSHFlexFly

mviannaAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

przemekCommented:
1) I don't think that you can add records with your "rsFly_table_Grouping " recordset.
2) Try to use Recordset.Requery metod ( not Resync ) to refresh your MSHFlexFly.
3) After requery you have to rebind your MSHFlexFly

Set MSHFlexFly.DataSource = nothing
MSHFlexFly.DataMamber = ""
MSHFlexFly.DataMamber = "Member"
Set MSHFlexFly.DataSource = DataEnv..

I hope it helps.

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.