Hi Everyone
I am building a small Form that links some information with some checkbox, it means, that when I have a TRUE value in the file, this action will trigger that another field, located in a table that was brought into a query, will be overwrite with a text "-1"
so when I tick it, it will have "-1" and no tick means "-1".
I wrote this in VB:
If (East_Checkbox.Value = True) Then
East = "-1"
Else
East = "1"
End If
The problem is that when I start changing between records, the value stays as the previous way, so if in the previous record it had a tick, in the next one it will also have it, and if in the third one I want to take the tick, it will also remove it in the other two records.
Is there any code I can write so that the value gets saved and do not changed in the next records?
I tried to paste the same code I wrote in the AfterUpdate but still it does not work.
Please check the image
If you see the sequence, if on the 3rd image I change the checkboxes, on the fourth image, when I return to the previous record (record 2) you see that the checkbox is ticked even though I did not do it.
What I would like to achieve is that my checkboxes stay in the position that I selected, and if the next record is changed, the previous should not change.
Thank you.
I am building a small Form that links some information with some checkbox, it means, that when I have a TRUE value in the file, this action will trigger that another field, located in a table that was brought into a query, will be overwrite with a text "-1"
so when I tick it, it will have "-1" and no tick means "-1".
I wrote this in VB:
If (East_Checkbox.Value = True) Then
East = "-1"
Else
East = "1"
End If
The problem is that when I start changing between records, the value stays as the previous way, so if in the previous record it had a tick, in the next one it will also have it, and if in the third one I want to take the tick, it will also remove it in the other two records.
Is there any code I can write so that the value gets saved and do not changed in the next records?
I tried to paste the same code I wrote in the AfterUpdate but still it does not work.
Please check the image
If you see the sequence, if on the 3rd image I change the checkboxes, on the fourth image, when I return to the previous record (record 2) you see that the checkbox is ticked even though I did not do it.
What I would like to achieve is that my checkboxes stay in the position that I selected, and if the next record is changed, the previous should not change.
Thank you.