CodeCharge Studio
search Register Login  

Visual PHP Web Development

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

YesSoftware Forums -> CodeCharge Studio -> ASP

 Custom Insert

Print topic Send  topic

Author Message
GGuzman

Posts: 10
Posted: 06/27/2004, 3:00 AM

I am trying to custom insert records (for each row) into a separate table using the code below in the "Before Show Row" event, but it appears that it's not retrieving the control value for SSAN.

Records are inserted if I manually type in a value (i.e. 123456789 for SSAN), but it will not work with the standard value property (CCDRAPS.SSAN.Value). When displaying the error message, it states:

[Microsoft][ODBC Microsoft Access Driver] Field 'HIPAADisclosures.SSAN' cannot be a zero-length string. (Microsoft OLE DB Provider for ODBC Drivers)

CCDRAPS is the name of the grid
SSAN is the control value I want inserted

________________________________________

Dim HIPAAConnection
Dim ErrorMessage

Set HIPAAConnection = New clsDBSSLDRAPS
HIPAAConnection.Open
HIPAAConnection.Execute("INSERT INTO HIPAADisclosures (SSAN, RequestorLogin) VALUES ('"& CCDRAPS.SSAN.Value &"', '" & Request.ServerVariables("LOGON_USER") & "')")
ErrorMessage = CCProcessError(HIPAAConnection)
'Response.Write ErrorMessage
'Response.End
HIPAAConnection.Close
_________________________________________

Any suggestions? (Perhaps I have to retrieve the value of the SSAN control a different way?)
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.