Hi, i am using variables in database but both times they dont work.
First example is, problem is there is no error message apart from sayin that its not there, so i knwo the syntax is A valid one but whether its right ?????
VB Code:
If cmdStartStop.Caption = "Stop Campaign" Then NotRunning.Source = "Select * From T_Campaigns WHERE Campaign_Name = ' " & lstNotRunning.Text & " ' ;" NotRunning.Open , db, adOpenKeyset, adLockOptimistic With NotRunning .Fields("Live").Value = "Not Running" .Update NotRunning.Close Call ListLoad End With End If
and the second is on a different form but same thing, dont pick it up
VB Code:
If db Is Nothing Then OpenConnectionCampaign Set CallBack = New ADODB.Recordset CallBack.Open "SHAPE {SELECT & 'CallBackList' & FROM Data WHERE CallBack = 'True' } AS ParentCMD2 APPEND ({SELECT '& CallBackList &' FROM Data WHERE CallBack = 'True'} AS ChildCMD2 RELATE Telephone_Number TO Telephone_Number) AS ChildCMD2", db, adOpenStatic, adLockOptimistic bCancelResult = False Set grdDataGrid.DataSource = CallBack.DataSource
any idea's
tnx




Reply With Quote