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

 New User Listbox order by problem

Print topic Send  topic

Author Message
jhp
Posted: 04/28/2003, 12:22 AM

I am trying to sort my listbox, according to the help file you can use the Before Build Select event. When I try it in the task example it works.
But in my application I get the following error:
Source: ListBox State
Error description: No value given for one or more required parameters. (Microsoft JET Database Engine)
SELECT * FROM lstate ORDER BY state_name ASC

I find this error message to be VERY general. I have spelled the field name incorrect on purpose and still get the same message.

The database is an access table:
table name = lstate
state_id = autonumber
state_name = text (2)

Tee listbox is set up as required and I compaired all of the setting with the task example that works.

my code is:

Function Speaker_State_DataSource_BeforeBuildSelect() 'Speaker_State_DataSource_BeforeBuildSelect @13-10D73FFF
'Custom Code @36-73254650
' -------------------------
Speaker.State.DataSource.ORDER = " state_name ASC"
' -------------------------
'End Custom Code
End Function

Thanks for any help, I've wasted 4 hour on this.
L Irving
Posted: 04/28/2003, 12:54 AM

Try changing
Speaker.State.DataSource.ORDER = " state_name ASC"
to
Speaker.State.DataSource.ORDER = state_name & "ASC"
jhp
Posted: 04/28/2003, 1:02 AM

Didn't work you can even the DESC or ASC out and still get the error.

   


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.