Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I change an Identity field ( Auto Number ) to an integer

Status
Not open for further replies.

essa2000

Programmer
Dec 6, 2000
299
CA
Dears;
I am working on a 3-tier application and I am using a disconnected Rs to bound a Grid . I want to add a new record in this RecordSet. But , the problem is that my table from which this RecordSet is generated have a Primary Key which is a Auto Number Field. When , I try to call the AddNew Method it gives error "Errors Occured".
RecordSet is set to CursorLocation = AdUserClient
LockType = adBatchOptimistic and CursorType is adStatic.

I have dumped that recordSet in a Temp table using Select Into statement and fetched records from that table but it also has that Auto Number structure in a Stored Procedure.

I have also converted that Rs into other new updateable recordset but it affects the behaviour of that grid with which it is bound.

So , how can I solve this Problem.



Regards,
Essa
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top