Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

My DB is Access 2000.

If I have my SQL string

as SELECT * FROM CUSTMST

or SELECT * FROM CUSTMST WHERE CUSTID = "ABCD"

My program all return the right result.

 

But if I use

SELECT * FROM CUSTMST WHERE CUSTID LIKE "AB*"

There is nothing returned.

Why that happen? I tried the same SQL in Access itself, the result is fine.

 

Help, please. Thanks

Posted

Cant see a reason for it, other than there's something wrong with your code containing the SQL string.....

 

what are you using?

Grant me the serenity to accept the things I cannot change, the courage to change the things I cannot accept and the wisdom to hide the bodies of those people I had to kill today cos they pi**ed me off.
Posted

I used "*" in access and I get a result.

SELECT * FROM tblArtist WHERE Artist_Name LIKE 'So*';

And I get

Social Distortion

So why your,s doesn't work, don't know.

 

Maybe you should throw up your code so we all can see. Maybe something in there.

Live as if you were to die tomorrow. Learn as if you were to live forever.
Gandhi

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...