Welcome to dbFreaks.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

SQL Format

 
   Database Help (Home) -> Visual Basic RSS
Next:  MySQL Count() question.. (mysql newb)  
Author Message
user3073

External


Since: Jan 17, 2005
Posts: 3



(Msg. 1) Posted: Thu Feb 17, 2005 8:40 am
Post subject: SQL Format
Archived from groups: comp>lang>basic>visual>database (more info?)

Hi Guys,

I am trying to get a selection of fields from a DB.

I can select specific records using

sql = "SELECT * FROM cds WHERE Artist = 'bryan'"
rs.open sql,cn

Not problem. But I want to able to retireve records say starting with BR.
SO when I try

sql = "SELECT * FROM cds WHERE Artist = 'br*'"
rs.open sql,cn

It just skips all files.

Please help.

I have a Access back end using Jet.

Many Thanks

Gavin.

 >> Stay informed about: SQL Format 
Back to top
Login to vote
Jan Hyde

External


Since: Nov 06, 2003
Posts: 15



(Msg. 2) Posted: Thu Feb 17, 2005 8:40 am
Post subject: Re: SQL Format [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"gavin" 's wild thoughts
were released on Thu, 17 Feb 2005 12:59:51 GMT bearing the
following fruit:

 >Hi Guys,
 >
 >I am trying to get a selection of fields from a DB.
 >
 >I can select specific records using
 >
 >sql = "SELECT * FROM cds WHERE Artist = 'bryan'"
 >rs.open sql,cn
 >
 >Not problem. But I want to able to retireve records say starting with BR.
 >SO when I try
 >
 >sql = "SELECT * FROM cds WHERE Artist = 'br*'"
 >rs.open sql,cn
 >
 >It just skips all files.
 >
 >Please help.

SELECT * FROM cds WHERE Artist MATCHES 'br*'

SELECT * FROM cds WHERE Artist LIKE 'br%'

J


 >I have a Access back end using Jet.
 >
 >Many Thanks
 >
 >Gavin.
 >


Jan Hyde (VB MVP)

--
A man is incomplete until he is married.
After that, he is finished.

(Zsa Zsa Gabor)

[Abolish the TV Licence - <a style='text-decoration: underline;' href="http://www.tvlicensing.biz/]" target="_blank">http://www.tvlicensing.biz/]</a><!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: SQL Format 
Back to top
Login to vote
user3073

External


Since: Jan 17, 2005
Posts: 3



(Msg. 3) Posted: Thu Feb 17, 2005 10:40 am
Post subject: Re: SQL Format [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thanks thats great



"Jan Hyde" wrote in message


 > were released on Thu, 17 Feb 2005 12:59:51 GMT bearing the
 > following fruit:
 >
  >>Hi Guys,
  >>
  >>I am trying to get a selection of fields from a DB.
  >>
  >>I can select specific records using
  >>
  >>sql = "SELECT * FROM cds WHERE Artist = 'bryan'"
  >>rs.open sql,cn
  >>
  >>Not problem. But I want to able to retireve records say starting with BR.
  >>SO when I try
  >>
  >>sql = "SELECT * FROM cds WHERE Artist = 'br*'"
  >>rs.open sql,cn
  >>
  >>It just skips all files.
  >>
  >>Please help.
 >
 > SELECT * FROM cds WHERE Artist MATCHES 'br*'
 >
 > SELECT * FROM cds WHERE Artist LIKE 'br%'
 >
 > J
 >
 >
  >>I have a Access back end using Jet.
  >>
  >>Many Thanks
  >>
  >>Gavin.
  >>
 >
 >
 > Jan Hyde (VB MVP)
 >
 > --
 > A man is incomplete until he is married.
 > After that, he is finished.
 >
 > (Zsa Zsa Gabor)
 >
<font color=purple> > [Abolish the TV Licence - <a style='text-decoration: underline;' href="http://www.tvlicensing.biz/]</font" target="_blank">http://www.tvlicensing.biz/]</font</a>>
 ><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: SQL Format 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
sql query returns in wrong format - Hi, Hope someone can help me with this. I have MS SQL 2000 database where i have Table "PriceList" and there a column "Pricemk" wich is data type "money". All data in this column is in form "10001,35". So why when...

arrays - is there a way to concatenate the contents of an array (looping through the array) and storing each item in a comma delimited string? Thanks!

DataReport PageBreak - Hi everyone, I would like to know how to force pagebreak in a datareport for example after 5 records printed. Thank you all

Possible Use of a Cursor - I have a complex query that I hope I can explain it well enough for everyone to understand. I have a table that contains information for work instructions. Contained in the table are "MACHINE_PROC" these are groupings of machining processes....

Scroll Bars - Is there a way to find the size of scrollbars on a system using Visual Basic 6.0? I know how to look and change them on the display properties, but I don't know how to access that information from within Visual Basic.
   Database Help (Home) -> Visual Basic All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]