borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (winsock??.. help me please...)Next Topic (GRID - Free, spreadsheet style grid) New Topic New Poll Post Reply
AndreaVB Forum : VB General : cap - small acess diff
Poster Message
confusedbrat
Level: Sage

Registered: 29-08-2005
Posts: 64

icon cap - small acess diff

Hey experts

Am trying to get a string, then go character by character in the string, find a corresponding number value from a table and find the total. The problem i face is, A and a have different values in the access table but when i query it just returns the first one guess it is not case sensitive. How can i find the difference...

thanks
brat


mono1 = Len(Text1.Text)
cnt1 = 1
While cnt1 < mono1
t2 = Mid(Text1.Text, cnt1, 1)
If t2 <> "*" Then
nbr1 = nbr1 + t2
Text4.Text = t2

Text5.Text = Text4.Text + Text2.Text

If t2 <> " " Then
SQLStr4 = "Select nostch from stchtime where monostch = " + "'" + Text5.Text + "'"

Set dn = OpenDatabase(App.Path & "\sriram.mdb")
Set RecSet4 = dn.OpenRecordset(SQLStr4)
stchind = (RecSet4.Fields(0))

stchtot = stchtot + stchind

End If

10-07-2006 at 10:34 PM
View Profile Send Email to User Show All Posts | Quote Reply
misterxed
Level: VB Lord


Registered: 12-06-2005
Posts: 151
icon Re: cap - small acess diff

Hi pal,

Ur code's a bit confusing... i mean all those variables really confuse some1 who's trying to understand the code for the first time...

A tip: Use DESCRIPTIVE words as variable names...

As for ur query, i think u can use the ASC() function.. The capital letters start from 65 -96, and small leters from 97-whatever...

Hope that solves ur problemo.. Best of luck


Regards

____________________________
lOsT...

11-07-2006 at 01:01 PM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : VB General : cap - small acess diff
Previous Topic (winsock??.. help me please...)Next Topic (GRID - Free, spreadsheet style grid) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder