Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Please read/fix this sql statement

Status
Not open for further replies.

kiwiCoder

Technical User
Aug 2, 2001
45
NZ
This works if I take out either the > or the = parameter but will not work with both, what have I done wrong.

Set recset2 = cnDataBaseConnection.Execute("SELECT * from Screening WHERE Screening.CinemaNumber= '" & Cine & "' AND Format$(Screening.StartAt, 'DD/MM/YYYY') > = '" & StartDay & "' ;")
 
my VB book saids > = is correct, but maybe you need to remove the space in the middle, as in ">="
 
Thanks guys the >= no space did the trick, cant believe I didn't try that. People like me give newbies a bad name :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top