Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Modifying related MS Access tables using VB

Status
Not open for further replies.

gabtech

IS-IT--Management
Apr 21, 2004
3
KE
I am using VB6 to Modify records in related tables in MS Access. It will not accept because the table i am updating is related to another whose corresponding records i also need to modify.

How can i modify records in all the related tables?
This is the sample code am using;

Set rs2 = New ADODB.Recordset
rs2.Open "select * from PolicyDetails", cn, adOpenDynamic, adLockOptimistic
cn.Execute "update PolicyDetails set Pol_no = '" & Me.Text19.Text & "'where pol_no ='" & Pol_num & "'"


Table "policyDetails" is related to another, "Payments" and needs to be modified too. I will appreciate your help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top