• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3570
  • Last Modified:

Sort ADO Table

How do you sort an ADO table when the field name has a gap in the name ie 'Field Name', not 'Field_Name'

I know ADOTable.Sort := 'Field_Name ASC' will sort Fleld_Name, but what about 'Field Name'?

I have tried ADOTable.Sort := '[Field Name] ASC' and a few other combinations.

 

0
Dennis_Treacy
Asked:
Dennis_Treacy
  • 3
1 Solution
 
kfoster11CEOCommented:
What is your database?  

I tested this with SQL Server and your '[Field Name] ASC' worked fine.
0
 
Dennis_TreacyAuthor Commented:
I am using Microsoft Access
0
 
Dennis_TreacyAuthor Commented:
I will get back to you. I think you are right.
0
 
Dennis_TreacyAuthor Commented:
Yes, you are right. I had another error my end. Your comment made me go back and check some other code.
Thanks.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now