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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ado record posting problems

Status
Not open for further replies.

garwain

Programmer
Jan 30, 2002
461
CA
I have a bug in one of my programs where once in a while when I post a record in a dbgrid that is connected to an ADO query, It'll return an id of 0 for an autoincrement field.

I've found that to cause this to happen I have to have opened 2 other forms and one of them has to remain open.

I've looked through the form with the grid and the 2 other forms (which don't relate in any way to the query or grid) and haven't been able to locate anything that could cause this.

Any ideas as to why this happens? 95% of the time the id field is returned correctly after the post has been performed.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top