CodeCharge Studio
search Register Login  

Visual PHP Web Development

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

YesSoftware Forums -> CodeCharge -> Programming

 Auto insert hiden field

Print topic Send  topic

Author Message
RAN

Posts: 28
Posted: 05/19/2005, 5:12 PM

Hi,

I have a table (Products) with a primary key (Products_ID) and
another key (Model_ID).

When i insert this keys the (product_ID) automatically put a number in DB but not hiden (Model_ID)
Its possible with hiden (Model_ID) insert automatically a number in the table (Products)?

Thank you in advance
View profile  Send private message
Nicole

Posts: 586
Posted: 05/20/2005, 5:46 AM

Ran,
You can assign default value in Before Insert event, e.g. for ASP
  
fldfield_name =58  

_________________
Regards,
Nicole
View profile  Send private message
RAN

Posts: 28
Posted: 05/21/2005, 1:22 AM

Thank you Nicole for your help.

When I use fldfield_name =58 give me always the same value.
Its possible with another script give me a value 1...2...3...4... and so on?

Thank you
View profile  Send private message

Add new topic Subscribe to topic   


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

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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