Results 1 to 17 of 17

Thread: Listbox Database

Threaded View

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Apr 2004
    Posts
    220

    Listbox Database

    Hi
    Firstly I have a listbox and I want the user to select an item from the list box and then click cmdStartStop

    when cmdStartStop is pressed i want it to put "Not Running" into the field Live WHERE the Campaign_Name is = to the lstnotrunning.text

    I am trying to put the variable Not Running Select into the **Insert NotRunningSelect** but it doesn't alow me to

    VB Code:
    1. Dim NotRunningSelect As String
    2. NotRunningSelect = lstNotRunning.Text
    3. If cmdStartStop.Caption = "Stop Campaign" Then
    4. NotRunning.Source "Select * From T_Campaigns WHERE Campaign_Name = **Insert NotRunningSelect** "
    5. NotRunning.Open , db, adOpenKeyset, adLockOptimistic
    6. NotRunning.Fields(Live).Value = "Not Running"

    Any idea on what im doin wrong or a better way to do it

    tnx adz
    Last edited by k0r54; Jun 16th, 2004 at 04:14 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width