You are here: sql query in vb « MsSQL Server « IT news, forums, messages
sql query in vb

Posted by GANESH NAIDU on 03/09/06 14:07

i need help in sql query my coding is as under

Dim MRUNYEAR As String
MRUNYEAR = "0405"
Set fgrs = New Recordset
fgrs.Open "select CT3HDR.CT3ID, CT3HDR.CT3NO,
format(CT3HDR.ct3date,'dd/mm/yyyy'), suppmast.suppname FROM CT3HDR INNER
JOIN suppmast ON CT3HDR.suppID=suppmast.suppid WHERE
CT3HDR.RUNYEAR=MRUNYEAR ORDER BY CT3HDR.CT3NO", db, dbopenstatic,
adLockOptimistic

i am receiving error "no value given for one or more required parameter"

if i give '0405' directly in the query than it is running fine. so how
to give mrunyear variable in the query.

thanks,
ganesh



*** Sent via Developersdex http://www.developersdex.com ***

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация