Hi! I'm calling a function that should populate my part description text box if a part number matches a previous description. I'm getting an invalid use of Null error when I run it. Following is the code:
Private Sub EtcPartNum_LostFocus()
fillDescript
End Sub
---------------------
Sub fillDescript()
Dim db As Database
Dim rs As Recordset
Dim SQLString As String
Dim partNum As String
Set db = OpenDatabase("C:\Kim\IPBDatabase.mdb"
partNum = EtcPartNum.Text
SQLString = "select * from IPBListings where IPBListings.ETCPartNum = '" & partNum & "';"
Set rs = db.OpenRecordset(SQLString)
PartDescript.Text = rs.Fields("PartDescript"
rs.Close
db.Close
End Sub
Thanks!
Private Sub EtcPartNum_LostFocus()
fillDescript
End Sub
---------------------
Sub fillDescript()
Dim db As Database
Dim rs As Recordset
Dim SQLString As String
Dim partNum As String
Set db = OpenDatabase("C:\Kim\IPBDatabase.mdb"
partNum = EtcPartNum.Text
SQLString = "select * from IPBListings where IPBListings.ETCPartNum = '" & partNum & "';"
Set rs = db.OpenRecordset(SQLString)
PartDescript.Text = rs.Fields("PartDescript"
rs.Close
db.Close
End Sub
Thanks!