Hi,
I want to find empty field (Null/ "") but did'nt work. When I tried this code with for example "t", and put "t" in the field, the code does work. Here's the code,
Can anybody helps. Thanks


I want to find empty field (Null/ "") but did'nt work. When I tried this code with for example "t", and put "t" in the field, the code does work. Here's the code,
Code:
Set RstInv = dbInv.OpenRecordset("DateRecord")
Counter = 4
With RstInv
.GetRows ([StrBarcode])
.MovePrevious
'Need change ################################################################
Do Until .Fields(Counter).Value = Null '<--- NO ERROR BUT CAN'T FIND NULL
Counter = Counter + 1
MsgBox Counter
Loop
'Need change ################################################################
.Edit
.Fields(Counter).Value = Forms!IN_OUT.oInOut & Date
.Update
End With
Can anybody helps. Thanks