|
-
Oct 20th, 2000, 01:00 PM
#1
Thread Starter
Addicted Member
Hello!
I have kind an annoying problem .
The thing is that I have in my DB table field which is AutoNumber. And in that table I add another record. Is there any other way to retrieve that field's value without loading whole recordset, because I need that number for adding it to other records in some other tables that are referencing to just added record.
Any suggestions?
Zvonko Bostjancic
Ilirska Bistrica, Slovenia
[email protected]
Using VS6 Professional with SP3
Programming mostly in VB and I've started to learn VC++ & MFC
-
Oct 21st, 2000, 12:54 AM
#2
Hi, you can use queries to retrieve particular fields from ur tables. something like "Select fieldname from tablename". You can use this to refer to the data in the field.
If you have got a specific problem, dont hesitate to mail me. All the best...vijay
[Edited by gantibabu on 10-21-2000 at 02:00 AM]
-
Oct 21st, 2000, 03:42 AM
#3
Frenzied Member
If your using access, nope. You need a recordset. If your using SQL Server, you can put your update/insert into a stored proc and pass back the new ID as a output paramter/return value.
oOOo--oOOo
__ /\/\onte96
oOOo--oOOo
Senior Programmer/Analyst
MCP
[email protected]
[email protected]
Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|