
IC
|
| Posted: 04/11/2003, 8:18 AM |
|
Please, someone could help me?
I'm using ASP generated by CC 2.0.5.
I have to assign a custom value to the key field of a record before to write it.
I have a Record form with a Hidden Numeric Field (the name is WB2PP) marked as 'Key'.
In the Before Insert event I wrote this:
fldWB2PP = Session("NewPratica")
but the result is that when I submit the form I get a 'duplicate key error' because the field is always 0 (zero). Note that if I change the field from Hidden to Text and I write a number by hand in the field, the INSERT of the record is ok.
It seems that I can't to set the value of the key field in the Before Insert event. My custom value of the 'fldWB2PP' key field is ignored.
Please, could you help me?
Sincerely,
IC
|
|
|
 |
Karen
|
| Posted: 04/13/2003, 12:54 AM |
|
I'm just guessing but you could try it if nothing else works.
Instead of fldWB2PP, try pPKWB2PP.
I hope that helped.
|
|
|
 |
|

|