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...
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.Add New
'rsStoryData("f ld_story_catago ry_ID") = Upload.Form("ca tagoryID")
rsStoryData("fl d_story_title") = Upload.Form("ti tle")
rsStoryData("fl d_story_dateCre ated") = now
rsStoryData.Upd ate
'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...
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.Add New
'rsStoryData("f ld_story_catago ry_ID") = Upload.Form("ca tagoryID")
rsStoryData("fl d_story_title") = Upload.Form("ti tle")
rsStoryData("fl d_story_dateCre ated") = now
rsStoryData.Upd ate
'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
'
'
Comment