Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21123

Incorrect Syntax near #

$
0
0
Hi

I am using Sql2005 Express . In the below code it is giving me error "Incorrect Syntax near #"

rs.Open "Select distinct(Shiftcode) from shift where effectivefrom=(select max(effectivefrom) from shift where effectivefrom<=#" & DTPicker1.Value & "#)", cnn1, adOpenDynamic, adLockOptimistic, adCmdText

Thanks

Viewing all articles
Browse latest Browse all 21123

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>