July 2, 2004 at 10:27 am
Hello All,
I have one of the most perplexing problems that I've ever seen! I have an application that simply wants to add a record to a recordset. My setup for this is as follows: (using MDAC 2.8)
rsu.CursorType = 3
SQLString = "SELECT * FROM TASDISTRICTS ORDER BY TDID"
rsu.open SQLString, cn, 1, 3
July 3, 2004 at 2:05 am
Something is strange about your code: in the second line you say that you want a static cursor, but when you open the recordset you say that you want a keyset cursor. Which one do you want ? If you want to use a keyset cursor, the most probable cause of the problem is that you don't have a primary key in the table. Another possible cause would be the CursorLocation.
Razvan
July 5, 2004 at 8:54 am
Also, if you are using OLEDB drivers for the connection, the 'ORDER BY' in the SQL can sometimes convert the cursor to be read only. Don't ask me why. Its a 'feature' of the OLEDB drivers (at least in MDAC 2.7)
Peter
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply