Solved

SQL with access 97 mdb

Posted on 2004-04-11
5
234 Views
Last Modified: 2010-04-05
Hi,
I use Delphi 5 with a Access 97 mdb and ADO.
In the delphi adoquery1 sql editor i want to do this :

SELECT agv(table1.pourcent)....
FROM ...

But table1.pourcent is a string.
How to convert to int ?

SELECT avg(cint(table1.pourcent)) dont work
also dont work : stringtostr, string_to_str...

Where i can find a document where all the function are detailled ?


Thanks.

0
Comment
Question by:lgc5800
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
5 Comments
 
LVL 27

Assisted Solution

by:kretzschmar
kretzschmar earned 250 total points
ID: 10801402
what is table1? a ttable instance?
0
 

Author Comment

by:lgc5800
ID: 10805307
table1 is a table in the access mdb
0
 
LVL 27

Accepted Solution

by:
kretzschmar earned 250 total points
ID: 10806732
what about

SELECT avg(pourcent)....  
FROM table1

??

pourcent is a textfield?
0

Featured Post

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Delphi: ForceDirectory plain function 7 50
RESTRequest Parameter 4 54
Wincontrol not (correctly) drawn 15 49
Broadcast a message using ICS 2 28
A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question