Hi,
what I need to do is be able to add a new record to the mdb depending on what is in the previous record.
so for eg:
first record: balance=$0
previous record: add $40 balance=$40
new record: add $10 balance=$50
this is the code I have attached to an OK button:
rsRecordSet.Source = "Select * From log_deposit"
rsRecordSet.ActiveConnection = connConnection
rsRecordSet.Open
rsRecordSet.AddNew
rsRecordSet("Period".Value = txtperiod.Text
rsRecordSet("Date".Value = txtdate.Text
rsRecordSet("Balance".Value = rsRecordSet("Balance" + txtamount.Text
rsRecordSet.Update
So if anyone knows how to do this, pls reply
Thanks.
what I need to do is be able to add a new record to the mdb depending on what is in the previous record.
so for eg:
first record: balance=$0
previous record: add $40 balance=$40
new record: add $10 balance=$50
this is the code I have attached to an OK button:
rsRecordSet.Source = "Select * From log_deposit"
rsRecordSet.ActiveConnection = connConnection
rsRecordSet.Open
rsRecordSet.AddNew
rsRecordSet("Period".Value = txtperiod.Text
rsRecordSet("Date".Value = txtdate.Text
rsRecordSet("Balance".Value = rsRecordSet("Balance" + txtamount.Text
rsRecordSet.Update
So if anyone knows how to do this, pls reply
Thanks.