Results 1 to 2 of 2

Thread: Discovering if an SQL statement has output NULL??

  1. #1
    New Member
    Join Date
    Sep 01
    Location
    Aberdeen - Scotland
    Posts
    12

    Discovering if an SQL statement has output NULL??

    Hi again!

    Erm, How can I check to see if an SQL statement has returned nothing? It's very late here and I can't think straight...

    Also how would I add data from text inputs into a database?

    thanks!

    Chris!
    WinterMute.

  2. #2
    PowerPoster 2.0 Negative0's Avatar
    Join Date
    Jun 00
    Location
    Southeastern MI
    Posts
    4,367
    TO check for nothing use this as long as you opened forward only


    Code:
    if rs.eof = false then
    'Returned something
    else
    msgbox "Nothing returned"
    end if
    To add data to a database

    Code:
    objConn.Execute "INSERT INTO table (FIELD1,FIELD2) VALUES ('" & text1.text & "','" & text2.text & "')"
    Hope this helps,

Posting Permissions

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