CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 CC 2.0.5, custom value to key field before insert

Print topic Send  topic

Author Message
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.

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.