what i am wondering is what the line of code in the title actually means!
i have read some posts from the archives of this forum about getting a recordcount of a recordset which said that if you don't put this line in then your recordcount will return zero
i have tried my code both with and without this line and sure enough it works fine when you put in
rst.CursorLocation = adUseClient
before opening the recordset and sure enough the count returns zero if you don't put in that magic line of code, its just that none of the posts i read tell me WHY this makes such a difference or what it actually means
intellisense tells me that the alternative to
rst.CursorLocation = adUseClient
is
rst.CursorLocation = adUseServer
so i am guessing that its the difference between the database being held on the local machine and it being (split?) with the backend on a server and front end on the local machine
does this mean that if i was to split my database so the tables ect. were stored on a central server then i would observe the opposite behaviour of recordcount returning zero without
rst.CursorLocation = adUseServer
i would like to find out because this is what is intended to do with the database in the near future - and just because i like to know what my code means
i have read some posts from the archives of this forum about getting a recordcount of a recordset which said that if you don't put this line in then your recordcount will return zero
i have tried my code both with and without this line and sure enough it works fine when you put in
rst.CursorLocation = adUseClient
before opening the recordset and sure enough the count returns zero if you don't put in that magic line of code, its just that none of the posts i read tell me WHY this makes such a difference or what it actually means
intellisense tells me that the alternative to
rst.CursorLocation = adUseClient
is
rst.CursorLocation = adUseServer
so i am guessing that its the difference between the database being held on the local machine and it being (split?) with the backend on a server and front end on the local machine
does this mean that if i was to split my database so the tables ect. were stored on a central server then i would observe the opposite behaviour of recordcount returning zero without
rst.CursorLocation = adUseServer
i would like to find out because this is what is intended to do with the database in the near future - and just because i like to know what my code means