query help

Steven Low

Active member
Joined
Apr 14, 2005
Messages
42
Programming Experience
1-3
Hi guys
Im creatingh a query in my access which allows

// symbols to be counted as numbers in the totalattendence

i got it to count the symbols but i only want it to count /// as number soo it counts /x/ anything but i only want it to count /

heres what i have done in sql view in access

SELECT student.StudentID, student.Firstname, student.Lastname, student.Age, student.[Dance Stage], student.Attendence, student.tname, Len([Attendence]) AS totalattendence
FROM student;
 
Hi

The problem is I want to put the query onto vb.net datagrid.

SELECT student.StudentID, student.Firstname, student.Lastname, student.Age, student.[Dance Stage], student.Attendence, student.tname, Len(Replace([Attendence],"*","")) AS totalattendence
FROM student;


but with the above query i cant for some reason. which i really want in the datagrid in vb

with this query below below I can easily be showed on the datagrid.
SELECT student.StudentID, student.Firstname, student.Lastname, student.Age, student.[Dance Stage], student.Attendence, student.tname, Len([Attendence]) AS totalattendence
FROM student;

Why am I getting this and is it possible to be put on the datagrid in vb.net?:(
 
Hi Lingsn

I found out that I cant use the word "replace" that is why i cant use it in vb.net

Len(Replace([Attendence],"x","")) AS totalattendence

is there anything else I can use apart from replace which would allow the query 2 to be used in vb.net datagrid:(
 
Back
Top