Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Software > Ado Data RDS > i need some gui...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 271 of 305
Post > Topic >>

i need some guidance

by =?Utf-8?B?U2FtIEhhbGw=?= <Sam Hall@[EMAIL PROTECTED] > Mar 7, 2006 at 04:37 PM

I'm doing something that feels terribly wrong, and I know there has to be a

"right" way to handle this...

I'm inserting a record, and then need to immediately access that records 
indx (just a unique integer field);  If I immediately use a select
statement 
to return that record to get the indx value, the insert hasn't posted yet,
so 
I do something like this:

insert blah blah
result=my select statement
do until not result.eof
    result=my select statement
loop

eventually the insert posts and my result is populated.  the problem 
obviously is that if the insert fails for some reason I'm stuck in a loop.
 
I'd like to handle this like this, but I don't know how:

[some handle to the record] = my insert statement

So then I have some reference to the record in question as it posts.  I'd 
appreciate some insight however general it may be, I really don't know if
I'm 
even thinking in the right direction.

Thanks for your time.

Sam Hall
sam@[EMAIL PROTECTED]

 




 3 Posts in Topic:
i need some guidance
=?Utf-8?B?U2FtIEhhbGw=?=   2006-03-07 16:37:27 
Re: i need some guidance
"Brian Muth" &l  2006-03-08 20:27:47 
Re: i need some guidance
=?Utf-8?B?U2FtIEhhbGw=?=   2006-03-09 07:18:59 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Nov 22 14:23:29 CST 2008.