R
redthunder21 via AccessMonster.com
I have an Unbound Form that uses a query to gather certain data. Once this
data is int he query, I need to update another table. I want to update the 3
fields in the table - Moved = Yes, DateMoved = Today and TimeMoved = Now. I
am new to access and am struggling with the correct way to accomplish this.
My query is TestQuery and the ID's are the same in the query and the table
that I want to update. I can get the every record of the table field Moved
to change to yes, but I only want the RecordIDs from the query to be updated
in the table.
This is the code I have which updates the entire Moved field in the table:
DoCmd.RunSQL "UPDATE ScrapDataBuild SET scrapdatabuild.MOVED = " &
strCategory & ""
Can anyone help me with the code to select the matching ID's to update the
table? I am using Access2003 and I have tried numerous time to use the where
clause with no luck.
Thanks,
Dawn
data is int he query, I need to update another table. I want to update the 3
fields in the table - Moved = Yes, DateMoved = Today and TimeMoved = Now. I
am new to access and am struggling with the correct way to accomplish this.
My query is TestQuery and the ID's are the same in the query and the table
that I want to update. I can get the every record of the table field Moved
to change to yes, but I only want the RecordIDs from the query to be updated
in the table.
This is the code I have which updates the entire Moved field in the table:
DoCmd.RunSQL "UPDATE ScrapDataBuild SET scrapdatabuild.MOVED = " &
strCategory & ""
Can anyone help me with the code to select the matching ID's to update the
table? I am using Access2003 and I have tried numerous time to use the where
clause with no luck.
Thanks,
Dawn