T
the other john
ok, for a change I'm looking for why something "does" work.
I wanted to insert a record into an Access DB and then retrieve the
value that was just inserted. I came across this...
http://support.microsoft.com/default.aspx/kb/221931
I tried this out and it seemed to work but what I noticed is that when
it printed out the value "before" the requery it already contained the
value I was looking for. So, for some reason, this works. why and
how?
Thanks!
'
'
rsStoryData.AddNew
'rsStoryData("fld_story_catagory_ID") = Upload.Form("catagoryID")
rsStoryData("fld_story_title") = Upload.Form("title")
rsStoryData("fld_story_dateCreated") = now
rsStoryData.Update
'retrieve story ID just created and place in variable. why this works
I don't know...
storyID = rsStoryData("PK_story_ID") 'this value is the "new" just
inserted ID value
'
'
I wanted to insert a record into an Access DB and then retrieve the
value that was just inserted. I came across this...
http://support.microsoft.com/default.aspx/kb/221931
I tried this out and it seemed to work but what I noticed is that when
it printed out the value "before" the requery it already contained the
value I was looking for. So, for some reason, this works. why and
how?
Thanks!
'
'
rsStoryData.AddNew
'rsStoryData("fld_story_catagory_ID") = Upload.Form("catagoryID")
rsStoryData("fld_story_title") = Upload.Form("title")
rsStoryData("fld_story_dateCreated") = now
rsStoryData.Update
'retrieve story ID just created and place in variable. why this works
I don't know...
storyID = rsStoryData("PK_story_ID") 'this value is the "new" just
inserted ID value
'
'