CodeCharge Studio
search Register Login  

Web Reports

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

YesSoftware Forums -> Archive -> GotoCode Archive

 Database command error.

Print topic Send  topic

Author Message
hwd007
Posted: 05/22/2003, 9:43 PM

I get and error "Database command error." when I try to add a record in the database . Any ideas ???

rrodgers
Posted: 05/23/2003, 5:43 AM

What language, asp, php....?
Is there any more info from the error? A number, the field that is in error?

Meshal
Posted: 06/11/2003, 2:49 AM

I have the same error when i try to add a record.

I am using ASP, IIS, CCS2.1

The error is:
Sorce: Record WeeklyStatus / Insert Operation
Error description: Command text was not set for the command object. (Microsoft JET Database Engine)


Please Help??
rrodgers
Posted: 06/11/2003, 3:29 PM

You don't say what you are using. CCS or CC? and you don't mention what language you are using. ASP, PHP... etc.?

So I will answer in CCS/ASP

>> Command text was not set for the command object

A quick search of goole.com turns up that this is likely because the sql statement has not been set or is incorrect. Why this is happening in your code charge app I don't know. I would start by "print"ing the

Formname.DataSource.SQL
Formname.DataSource.where
Formname.DataSource.Order

statements to find out what is being sent to the backend? Maybe concat them together to run your own query to see what the error may be.
rrodgers
Posted: 06/11/2003, 3:52 PM

Actually what I would do to diagnose the insert error would be... to put this code in the FormName_DataSource_BeforeExecuteInsert event.

Print FormName.Command.Sql
response.end

This will print out the sql that is sent to the db.

rob

   


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.