Hi,
Can someone show how this work. I have
rs.fields(2)= rs.fields(2) - 1 this works fine but if I do the other way around it won't update the record rs.fields(2)
rs.fields(2) = rs.fields(2) + 1 <-this won't update the fields.
Is the field to which rs.Fields(2) refers perchance a unique field? If it is then
[tt] rs.fields(2)= rs.fields(2) - 1
Old Value New Value
1 0
2 1
3 2
[/tt]
No problem
But
[tt] rs.fields(2)= rs.fields(2) + 1
Old Value New Value
1 2 [red]<-- Duplicate value[/red]
2 [red]<--- There's already a 2 in the table[/red]
3
[/tt]
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.