J
Josh
I have a purchase order form, when Items are received, they are 'posted';
Dim db As DAO.Database
Dim rs As DAO.Recordset
Set db = CurrentDb
Set rs = db.OpenRecordset("tblInventory", dbOpenDynaset)
rs.AddNew
rs!ItemID = Me.ItemID
rs!MfgrNumber = Me.StockNumber
rs!TransActionDate = Me.DateItemRec
rs!Quantity = Me.NumberReceived
..etc, rest of the fields
rs.Update
rs.Close
Set rs = Nothing
Set db = Nothing
What I would like to do, is to then have some message to the user, that:
Qty ItemID StockNumber etc have been posted to Inventory.
For example:
"34 Item56589, StockNo.7845, have been posted to Inventory."
I currently simply have a msgbox that, if there were no errors, displays that
"Records have been added". The problem with that, is that I'm not sure that I
would be aware of any errors, so I would like to display the last record
entered, (single user environment, so what they just posted would indeed be the
last record), to confirm that it was actually posted.
Any suggestions?
Thanks
Dim db As DAO.Database
Dim rs As DAO.Recordset
Set db = CurrentDb
Set rs = db.OpenRecordset("tblInventory", dbOpenDynaset)
rs.AddNew
rs!ItemID = Me.ItemID
rs!MfgrNumber = Me.StockNumber
rs!TransActionDate = Me.DateItemRec
rs!Quantity = Me.NumberReceived
..etc, rest of the fields
rs.Update
rs.Close
Set rs = Nothing
Set db = Nothing
What I would like to do, is to then have some message to the user, that:
Qty ItemID StockNumber etc have been posted to Inventory.
For example:
"34 Item56589, StockNo.7845, have been posted to Inventory."
I currently simply have a msgbox that, if there were no errors, displays that
"Records have been added". The problem with that, is that I'm not sure that I
would be aware of any errors, so I would like to display the last record
entered, (single user environment, so what they just posted would indeed be the
last record), to confirm that it was actually posted.
Any suggestions?
Thanks