A
Alan48
Here is the coding i developed. i have the question if a table field (Lot_No)
is a number format. this code is running normally. When i have changed to
text format (Lot_No) in table field. It has an error prompt out. Now i am
guessing the problem is caued by field format. If i would like to change it
to number format and this sql statement still running properly, how can i do?
Thank you
Private Sub Lot_No_AfterUpdate()
Dim db As Database, rst As Recordset
Set db = CurrentDb
Set rst = db.OpenRecordset("SELECT * From tlbReceiving WHERE Lot_No = " &
Me![Lot_No] & ";")
With rst
Me![Description] = !Description
Me![Remark] = ![Remark]
.Close
End With
End Sub
is a number format. this code is running normally. When i have changed to
text format (Lot_No) in table field. It has an error prompt out. Now i am
guessing the problem is caued by field format. If i would like to change it
to number format and this sql statement still running properly, how can i do?
Thank you
Private Sub Lot_No_AfterUpdate()
Dim db As Database, rst As Recordset
Set db = CurrentDb
Set rst = db.OpenRecordset("SELECT * From tlbReceiving WHERE Lot_No = " &
Me![Lot_No] & ";")
With rst
Me![Description] = !Description
Me![Remark] = ![Remark]
.Close
End With
End Sub