Hello!
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-comfficeffice" /><o></o>
I have a database with two tables (well actually a lot more, but only two that matter for this question). I am trying, via VBA, to update one of the tables every time a record is added to the other table. Right now, I am planning on using this command:
<o></o>
<o></o>
My question is how do I get the values from the first table after the record was inserted? I was hoping for some sort of LastRecordInserted function that would have that data, but I am not finding anything like that.
<o></o>
Thoughts? Advice? Taunts and laughter?
<o></o>
Thanks for the help!
<o></o>
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-comfficeffice" /><o></o>
I have a database with two tables (well actually a lot more, but only two that matter for this question). I am trying, via VBA, to update one of the tables every time a record is added to the other table. Right now, I am planning on using this command:
<o></o>
Code:
Sub Form_AfterInsert()
<o:p></o:p>
DoCmd.RunSQL "INSERT INTO SecondTable VALUES([some value from FirstTable], [some other value from FirstTable])"
<o:p></o:p>
End Sub
My question is how do I get the values from the first table after the record was inserted? I was hoping for some sort of LastRecordInserted function that would have that data, but I am not finding anything like that.
<o></o>
Thoughts? Advice? Taunts and laughter?
<o></o>
Thanks for the help!
<o></o>