S
shiro
I put below code in my project :
Debug.print Len(Me.Lot_no)
In immediate window,I found that
there are spaces on the front and
behind of the len.
like: space5space
..I think,this condition cause the fail
of my code execution.
I have below code in Form's before update
If Len(Me.Lot_no) <> Me.cbo_Product.Column(1) then
Cancel = True
MsgBox "Invalid lot no"
I try put :
Debug.Print Me.cbo_Product.Column(1)
and it return 5 without space anywhere.
So the form updating keep fail anytime.How
to solve this problem.?Thank's for help.
Rgds,
Shiro
Debug.print Len(Me.Lot_no)
In immediate window,I found that
there are spaces on the front and
behind of the len.
like: space5space
..I think,this condition cause the fail
of my code execution.
I have below code in Form's before update
If Len(Me.Lot_no) <> Me.cbo_Product.Column(1) then
Cancel = True
MsgBox "Invalid lot no"
I try put :
Debug.Print Me.cbo_Product.Column(1)
and it return 5 without space anywhere.
So the form updating keep fail anytime.How
to solve this problem.?Thank's for help.
Rgds,
Shiro