Thanks ryancys:
If that is the case I could have written as below at the first place-
recordset("field4")=0
recordset("field3")=0
recordset("field2")=0
recordset("field1")=0
But since there are a number of fields to be set to 0, I thought to minimize the code & lines. Now as you are saying that this cannot be done, I might switch back to the old way, let me see.
Regards,
Main Topics
Browse All Topics





by: ryancysPosted on 2009-02-25 at 20:35:27ID: 23741601
>>recordset("field1")=record set("field 2")=record set("field 3")=record set("field 4")=0
set("field 4") set("field 3") set("field 2")
you cannot use that to set the values, as it's only set the value of your instance object's value, the other parts are for comparison.
So, to set all object's value, you need to assign them one by one, like:
recordset("field4")=0
recordset("field3")=record
recordset("field2")=record
recordset("field1")=record
get the idea?