Results 1 to 2 of 2

Thread: Ask SQL sintax in vb6

  1. #1

    Thread Starter
    Registered User
    Join Date
    Apr 2016
    Posts
    1

    Ask SQL sintax in vb6

    I have code : SQL = "SELECT kd_soal,pertanyaan,kunci,kategori_soal,status from soal WHERE status='AKTIF' AND kd_pelajaran ='" & Text1 & "' and kategori_soal='A' order by RAND() limit 8"

    How to change number 8 with fill textbox....

  2. #2
    Frenzied Member
    Join Date
    Jun 2014
    Posts
    1,084

    Re: Ask SQL sintax in vb6

    if Text2=8 then:

    SQL = "SELECT kd_soal,pertanyaan,kunci,kategori_soal,status from soal WHERE status='AKTIF' AND kd_pelajaran ='" & Text1 & "' and kategori_soal='A' order by RAND() limit " & Text2
    do not put off till tomorrow what you can put off forever

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