Although I have never used XP, I ran into the same problem with 2000. You can just use a Dim "rst statement" which returns variant and is a quick fix, but the problem is DAO versus ADO. If you look at your references in the VB Code window (tools->references), I bet Microsoft ADO (ActiveX Data Objects)is listed higher than Microsoft DAO (Data Access Objects) . This means that when you "Dim rst As Recordset", you are creating an ADO recordset variable. Problem you run into is the "set rst = currentdb.openrecordset("t
DAO
Dim rstTemp as DAO.Recordset
Set rstTemp = Currentdb.OpenRecordset("T
ADO
dim rstTemp as New ADODB.Recordset (if ADO is listed higher in references this is not neccesary, you can just do "as New Recordset")
rstTemp.Open ("Table1"),CurrentProject.
The ",adOpenDynamic, adLockOptimistic" part gives the cursor and locking method to use when opening. The ones I have given you will enable you to update and change the recordset.
Main Topics
Browse All Topics





by: AmokomaPosted on 2003-07-23 at 06:30:32ID: 8985931
Try
Dim rst as Object
instead, works for me :)
- Rasmus.