J
Jim Mills
Hi
I am trying to update a record in a table when a button is clicked by using
VBA. When the button is pressed, a report opens showing only the data
associated with a record. At the same time, I want to update a field in the
table with the current date/time. I need/would like to do this within the
VBA that executes on the button click.
This is the code behind the button: - DoCmd.OpenReport "Letter Out",
acPreview, , SchoolID = Forms!frmLetterSelect!SchoolID
It opens the repert in preview mode with the correct School identifed. I
want to update a field in the table associated with this record at the same
time and can't do it!!
Any ideas??? Many thanks. Jim
I am trying to update a record in a table when a button is clicked by using
VBA. When the button is pressed, a report opens showing only the data
associated with a record. At the same time, I want to update a field in the
table with the current date/time. I need/would like to do this within the
VBA that executes on the button click.
This is the code behind the button: - DoCmd.OpenReport "Letter Out",
acPreview, , SchoolID = Forms!frmLetterSelect!SchoolID
It opens the repert in preview mode with the correct School identifed. I
want to update a field in the table associated with this record at the same
time and can't do it!!
Any ideas??? Many thanks. Jim