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

 Process text boxes before insert

Print topic Send  topic

Author Message
powerfinger


Posts: 5
Posted: 08/08/2004, 10:12 AM

Hello,

I'm having a little trouble... I've got 3 text boxes, and I'd like the user to fill in two of them, then have the third one "autofill" (using Record-Insert)

Textbox1 = FirstName
Textbox2 = LastName
Textbox3 will be FirstName & space & Lastname when the "Insert" button is pressed. (and all three fields should be recorded in the DB (currently tb1 and tb2 are)

I've been trying to put the following code in the "Before Insert" command (using ASP (&VB)) with no success...

fldFirstnLast = fldFirstName & " " & fldLastName

I'm sure it's something simple that I'm missing... I just need to get off on the right foot...

(Maybe I don't even need the third textbox!?!?)

Thanks!
Pf
View profile  Send private message
Nicole

Posts: 586
Posted: 08/31/2004, 5:16 AM

Hello,
If no table fields are assigned to TextBox1 and TextBox2 try to obtain their value using GetParam() function in Before Insert event:
fldFirstnLast = GetParam("FirstName") & " " & GetParam("LastName")

_________________
Regards,
Nicole
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.