Hi,
I am trying to save data form text640 into my table Odmeny to field Poznamky1. Here is the code I use:
Is works but the problem is that it saves the same number from text640 to every field Poznamky1. The text640 is not a part of any table and recordset, I use it to calculate something and it changes for every record in my table.
Thank you very much for help.
I am trying to save data form text640 into my table Odmeny to field Poznamky1. Here is the code I use:
Code:
Dim recset As Recordset
Set recset = CurrentDb.OpenRecordset("Odmeny")
Do Until recset.EOF
recset.Edit
recset![Poznamky1].Value = Me.Text640
recset.Update
recset.MoveNext
Loop
Is works but the problem is that it saves the same number from text640 to every field Poznamky1. The text640 is not a part of any table and recordset, I use it to calculate something and it changes for every record in my table.
Thank you very much for help.