hello everyone,
I have an application that I built that allows a user to submit Case information in a form to a table and then they would update them in another form tab. The Case number remains the same and they are allowed to submit new Cases (using the same Case number) given that the most recent one was "closed" - updated with the latest information. Right now, I have an update query that I created that updates all cases with the information in a form but I just want it to update the most recent one because each Case should have different information for each line.
here is how the SQL view looks like from my query. I hope it can shed some light on how it functions:
UPDATE table1 SET table1.[Resolution Date] = [Forms]![Main Window]![UpdateRecords]![Text23], table1.[number of inadequate response] = [Forms]![Main Window]![UpdateRecords]![Text21]
WHERE ((([table1]![ITnumber/Email])=[Forms]![Main Window]![UpdateRecords]![Text15]));
So I want it to look something like:
*my notes
UPDATE table1 SET *the most recent Case field resolution date to* table1.[Resolution Date] = [Forms]![Main Window]![UpdateRecords]![Text23], *the most recent Case field(# of inadequate response)* table1.[number of inadequate response] = [Forms]![Main Window]![UpdateRecords]![Text21]
WHERE ((([table1]![ITnumber/Email])=[Forms]![Main Window]![UpdateRecords]![Text15]));
or VBA code
I appreciate any help with this!
thank you!