PC Review


Reply
Thread Tools Rate Thread

function sort order

 
 
JEM
Guest
Posts: n/a
 
      21st Jun 2010
I am using Access 2003 ADP with SQL Server 2005. Just upgraded from
SQL 2K. I have a combo box on the form where the row source is a user
defined function. Now that I'm working with 2005, the ORDER BY does
not work. What is the quickest/best way to fix this? Is it best to
change this to a stored procedure? Thanks for any advice.

Jenn
 
Reply With Quote
 
 
 
 
David W. Fenton
Guest
Posts: n/a
 
      22nd Jun 2010
JEM <(E-Mail Removed)> wrote in
news:e04ab9d6-5516-481b-a7fe-(E-Mail Removed):

> I am using Access 2003 ADP with SQL Server 2005. Just upgraded
> from SQL 2K. I have a combo box on the form where the row source
> is a user defined function. Now that I'm working with 2005, the
> ORDER BY does not work. What is the quickest/best way to fix
> this? Is it best to change this to a stored procedure? Thanks for
> any advice.


I can't quite figure out why you'd use a user-defined function
instead of a SQL statement as the rowsource.

--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/
 
Reply With Quote
 
 
 
 
JEM
Guest
Posts: n/a
 
      22nd Jun 2010
I inherited the database from another consultant. The records that
appear in the combo box need to be filtered based on the form's
record. He used a function to accomplish this.


On Jun 21, 9:12*pm, "David W. Fenton" <XXXuse...@dfenton.com.invalid>
wrote:
> JEM <J...@JEMConsulting.org> wrote innews:e04ab9d6-5516-481b-a7fe-(E-Mail Removed):
>
> > I am using Access 2003 ADP with SQL Server 2005. *Just upgraded
> > from SQL 2K. *I have a combo box on the form where the row source
> > is a user defined function. *Now that I'm working with 2005, the
> > ORDER BY does not work. *What is the quickest/best way to fix
> > this? *Is it best to change this to a stored procedure? Thanks for
> > any advice.

>
> I can't quite figure out why you'd use a user-defined function
> instead of a SQL statement as the rowsource.
>
> --
> David W. Fenton * * * * * * * * *http://www.dfenton.com/
> usenet at dfenton dot com * *http://www.dfenton.com/DFA/


 
Reply With Quote
 
a a r o n . k e m p f @ g m a i l . c o m
Guest
Posts: n/a
 
      6th Jul 2010
David;

SQL UDFs are extremely powerful.

If you don't know what they do, then why don't you STFU and go and
play with your baby-sized databases?

Thanks

-Aaron

On Jun 21, 6:12*pm, "David W. Fenton" <XXXuse...@dfenton.com.invalid>
wrote:
> JEM <J...@JEMConsulting.org> wrote innews:e04ab9d6-5516-481b-a7fe-(E-Mail Removed):
>
> > I am using Access 2003 ADP with SQL Server 2005. *Just upgraded
> > from SQL 2K. *I have a combo box on the form where the row source
> > is a user defined function. *Now that I'm working with 2005, the
> > ORDER BY does not work. *What is the quickest/best way to fix
> > this? *Is it best to change this to a stored procedure? Thanks for
> > any advice.

>
> I can't quite figure out why you'd use a user-defined function
> instead of a SQL statement as the rowsource.
>
> --
> David W. Fenton * * * * * * * * *http://www.dfenton.com/
> usenet at dfenton dot com * *http://www.dfenton.com/DFA/


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sort order and seconday sort order =?Utf-8?B?Y29saW4=?= Microsoft Access Queries 1 5th Apr 2007 04:28 PM
record order field function , like tab order function =?Utf-8?B?RGF2aWQgKEdpbmdlcm5vYik=?= Microsoft Access VBA Modules 1 3rd May 2006 03:19 PM
Graph reverse order changes series order but not legend order biddlea Microsoft Excel Misc 0 13th Aug 2004 12:48 PM
Sort Order vs Comparison Order Bill Microsoft Excel Misc 3 4th Mar 2004 12:27 AM
Access/sort order OR record order or not sure Terri Microsoft Access 3 10th Jul 2003 06:32 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:52 AM.