Please Help ~

  • Thread starter Thread starter kelvin H via AccessMonster.com
  • Start date Start date
K

kelvin H via AccessMonster.com

If DCount("[Style_Name]", "Styles", "[Style_Name]=' " txtStyle & " ' ) =
0 Then
( return wrong)
(do sth.)
Else
(return true)
(do sth.else)

End if

If the user enter the incomplete word in txtStyle , say "ke " (to be compared
with the field [Style_Name] :"kelvin") ...
What should I do to make it still return true in this case ???
(coz they must be equal (=) in order to return true)

Thanks ~
 
Hi Kelvin

Try
"[Style_Name] LIKE '" & txtStyle & "*'"

(that's air code: you may need to sort out the '"&!)

If DCount("[Style_Name]", "Styles", "[Style_Name]=' " txtStyle & " ' ) =
0 Then
( return wrong)
(do sth.)
Else
(return true)
(do sth.else)

End if

If the user enter the incomplete word in txtStyle , say "ke " (to be compared
with the field [Style_Name] :"kelvin") ...
What should I do to make it still return true in this case ???
(coz they must be equal (=) in order to return true)

Thanks ~
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top