CodeCharge Studio
search Register Login  

Visual Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> General/Other

 Cannot Get Listbox Working With Multiple Columns

Print topic Send  topic

Author Message
JimmyCrackedCorn

Posts: 583
Posted: 12/07/2008, 8:26 PM

In my search panel I have a listbox where I want to combine LastName and FirstName in the text portion of the listbox. So, I set it up like this,

SELECT ID, LastName, LastName & ", " & FirstName AS FullName
FROM tblPersonnel
ORDER BY LastName

Then I set the Bound Column to ID and the Text Column to FullName.

It works perfectly inside CCS. When I hit F9 to publish and put it on my web server, the page will not load and I get the following error,

ADODB.Recordset error '800a0e78'
Operation is not allowed when the object is closed.
/systems/Classes.asp, line 3338

If I delete this,

LastName & ", " & FirstName AS FullName

and set the Bound Column to ID and the Text Column to LastName it works in CCS AND on my server.

Any ideas as to how this should be set up? And why it works in CCS but not on the server? Thanks!


CCS Version 3.1
ASP
_________________
Walter Kempees...you are dearly missed.
View profile  Send private message
mentecky

Posts: 321
Posted: 12/07/2008, 11:34 PM

JCC,

Have you tried
LastName + ", " + FirstName AS FullName

Rick
_________________
http://www.ccselite.com
View profile  Send private message
JimmyCrackedCorn

Posts: 583
Posted: 12/07/2008, 11:45 PM

yep. tried that. same error. thanks.

anyone have any other ideas?
_________________
Walter Kempees...you are dearly missed.
View profile  Send private message
mentecky

Posts: 321
Posted: 12/08/2008, 12:06 AM

Sorry, try:

LastName + ', ' + FirstName AS FullName
(Single quotes)

Rick
_________________
http://www.ccselite.com
View profile  Send private message
JimmyCrackedCorn

Posts: 583
Posted: 12/08/2008, 12:16 AM

:-D:-D:-D it worked!

thank you!!! thank you!!! thank you!!!


any idea why the double quotes would not work on the server but would work locally in CCS?
_________________
Walter Kempees...you are dearly missed.
View profile  Send private message
mentecky

Posts: 321
Posted: 12/08/2008, 12:21 AM

JCC,

Great! Glad to help.

If you are using Access locally it is a bit looser on SQL syntax. Maybe that's the difference.

Rick
_________________
http://www.ccselite.com
View profile  Send private message
datadoit
Posted: 12/08/2008, 6:04 AM

I'm scratching my head as to why it worked at all for you...

Seems to me the SQL should be:

SELECT ID, LastName, CONCAT(LastName,', ',FirstName) AS FullName

What's the database?
JimmyCrackedCorn

Posts: 583
Posted: 12/08/2008, 7:10 AM

using Access locally and on the server
_________________
Walter Kempees...you are dearly missed.
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.

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.