HI i need help while i am using multiple combos.I am fetchig values from database and populating in combo1 and in the other combo2 i want to fetch the data wich was havig relation betwee them iam posting my code here once go though it...i am getting an eror like Novalue give for one or more Required parameters
VB Code:
sqlstr = "select distinct ProductId from die1 " rs.Open sqlstr, con, adOpenDynamic, adLockPessimistic ' Combo2.Clear Do While Not rs.EOF Combo2.AddItem rs.Fields("ProductId").Value rs.MoveNext Loop ' Populating combo2 with proper scheduleId's belongs to Product rs.Close Set rs = Nothing sqlstr = "select distinct ScheduleId from die1 where productid= " & Combo2.Text & "" Set rs = New ADODB.Recordset rs.Open sqlstr, con, adOpenDynamic, adLockPessimistic




Reply With Quote