Hi I am trying to load data into textbox from Microsoft Access in one of my fields they are allowed to have nothing but I can not seem to load the records that have a field that is blank, I receive a message saying:
Run-time error "94"
Invalid use of NULL.
Below is my code:
Private Sub cboDate_Click()
rsLogAccess.Open
If Not rsLogAccess.BOF Then
rsLogAccess.MoveFirst
End If
rsLogAccess.Find "[time] = " & cboDate.Text
If Not rsLogAccess.EOF Then
txtVEDPO.Text = rsLogAccess("edpo"
txtVLoad.Text = rsLogAccess("load"
txtVXMIT.Text = rsLogAccess("ordernet"
txtVIinger.Text = rsLogAccess("iingout"
txtVPOs.Text = rsLogAccess("po"
txtVINVs.Text = rsLogAccess("inv"
txtVComment.Text = rsLogAccess("comment"
End If
txtVMF.Text = rsLogAccess("mf"
txtVProPOs.Text = rsLogAccess("webP_pos"
txtVProVen.Text = rsLogAccess("webP_Ven"
txtVTestPOs.Text = rsLogAccess("webS_Pos"
txtVTestVen.Text = rsLogAccess("webS_ven"
Else
MsgBox "Error unable to load data", vbOKOnly
End If
rsLogAccess.Close
End Sub
thanks
Run-time error "94"
Invalid use of NULL.
Below is my code:
Private Sub cboDate_Click()
rsLogAccess.Open
If Not rsLogAccess.BOF Then
rsLogAccess.MoveFirst
End If
rsLogAccess.Find "[time] = " & cboDate.Text
If Not rsLogAccess.EOF Then
txtVEDPO.Text = rsLogAccess("edpo"
txtVLoad.Text = rsLogAccess("load"
txtVXMIT.Text = rsLogAccess("ordernet"
txtVIinger.Text = rsLogAccess("iingout"
txtVPOs.Text = rsLogAccess("po"
txtVINVs.Text = rsLogAccess("inv"
txtVComment.Text = rsLogAccess("comment"
End If
txtVMF.Text = rsLogAccess("mf"
txtVProPOs.Text = rsLogAccess("webP_pos"
txtVProVen.Text = rsLogAccess("webP_Ven"
txtVTestPOs.Text = rsLogAccess("webS_Pos"
txtVTestVen.Text = rsLogAccess("webS_ven"
Else
MsgBox "Error unable to load data", vbOKOnly
End If
rsLogAccess.Close
End Sub
thanks