Results 1 to 5 of 5

Thread: sql statement question

  1. #1

    Thread Starter
    Member
    Join Date
    Apr 2001
    Posts
    41
    ok i want to do the following

    Select * From video where play = 2 and playing = 3 order by number

    how would i make this work exactly

  2. #2
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    First, you need to connect to the database. I assume this is in Access? (what version as well, please)
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  3. #3

    Thread Starter
    Member
    Join Date
    Apr 2001
    Posts
    41
    well i got all the coding for that i just need the SQL statement i dont remember how to write a sql statement where u want more then 1 variable like where i want to play = 2 and playing = 1

  4. #4
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Oh right Hehehe silly me

    That statement looks absolutely fine
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  5. #5
    Frenzied Member
    Join Date
    Jan 2000
    Location
    Brooklyn NY USA
    Posts
    1,258
    Code:
    set recordset = database.openrecordset("Select * from Video Where play = 2 And Playing = 3 Order by Number;")

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