I have a recordset "ADODC_path.rec ordset" which takes input from two tables
When the field values are put into the textboxes and then edited and updated back into the tables, using the following codes, everything works fine.
Expand|Select|Wrap|Line Numbers
- "select * from path,Station where path.StationCode=Station.StationCode and path.traincode=" & Text2.Text
Path(fields: StationCode ,TrainCode ,RouteOrder)
The following code for table updation works well
Expand|Select|Wrap|Line Numbers
- With Adodc_path.Recordset
- .AddNew
- .Fields("path.stationcode") = rs.Fields("stationCode")
- .Fields("TrainCode") = Text2.Text
- .Update 'this updates the recordset,tables etc.
- End With
I need to put the .update command in another command button(save) so that the editing can be cancelled using CANCEL button.
There comes the problem:
When I issue the Adodc_path.Reco rdset.update command, it updates both tables.
How can I update a set of selected fields only (but all rows)in one table,even if multiple tables are given in adcmdText query.
Kindly help.
With regards
M.Manoj