Whenever I run my Program "Invalid Use of Null" occurs.
Here is the code. I have also made a module.
Private Sub Form_Load()
Set Conn1 = New ADODB.Connection
Call OpenDB
sSQL = "SELECT DISTINCT Name FROM Authors"
Set Rs1 = New ADODB.Recordset
Rs1.Open sSQL, Conn1, adOpenDynamic, adLockOptimistic, adCmdText
List1.Clear
Rs1.MoveFirst
Do Until Rs1.EOF
List1.AddItem Rs1.Fields(0) ---> this is the problem
Rs1.MoveNext
Loop
End Sub
2007-09-30
16:47:43
·
2 answers
·
asked by
Ryan B
1
in
Computers & Internet
➔ Programming & Design