
Originally Posted by
orange
Where would you get that Date????
If you are updating tblInv.DateStamp
where is the value coming from?
Sorry, the date is being generated from my print button.
Code:
Private Sub cmdPrintTag_Click()
On Error GoTo Form_Err
DoCmd.OpenReport "rptAssetTag_Temp", acViewNormal
CurrentDb.Execute "UPDATE tblInvTemp SET Counted = 1 WHERE ID = " & Forms!FRM_SearchMulti_Temp!SearchResults.Column(0), dbFailOnError Or dbSeeChanges
CurrentDb.Execute "UPDATE tblInvTemp SET DateStamp = Date() WHERE ID = " & Forms!FRM_SearchMulti_Temp!SearchResults.Column(0), dbFailOnError Or dbSeeChanges
Me.SearchResults.Requery
Me.SearchFor.SetFocus
Form_Exit:
Exit Sub
Form_Err:
MsgBox err.Description
Resume Form_Exit
End Sub
Basically any dates in the temp table tblInvTemp should also be in the SQL table tblInvTemp.