confusedbrat Level: Sage
 Registered: 29-08-2005 Posts: 64
|
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
|