> I open a connection in an Access module. I then want to create a recordset
> and populate it from a view that I am linked to through Access. While the
[quoted text clipped - 10 lines]
> build the recordset. What do I do?
> Thanks for your time.
I still get the timeout error.
Here is my code(I just added the CursorLocation and CommandTimeout lines you
suggested - to no avail):
Dim cnn As New ADODB.Connection
Dim strEmpDays As String
Dim strHoliday As String
Dim strcnn As String
Dim StartDate As Date
Dim EndDate As Date
cnn.CursorLocation = adUseServer
cnn.CommandTimeout = 0
StartDate = DLookup("[StartDate]", "BeginDate_t")
EndDate = DateAdd("d", 13, StartDate)
strcnn = "Data Source='Global_MWP';User ID='Master';Password='master';"
cnn.Open strcnn
strEmpDays = "SELECT * FROM VM_TIME_ATND_HST_2M;"
rstEmpDays.Open strEmpDays, strcnn, adOpenStatic, adLockReadOnly
(Here is where I get the timeout error)
> Assuming you are using adodb?
>
[quoted text clipped - 17 lines]
> > build the recordset. What do I do?
> > Thanks for your time.
Ralph - 16 May 2008 20:01 GMT
Try
cnn.ConnectionTimout=0
> I still get the timeout error.
> Here is my code(I just added the CursorLocation and CommandTimeout lines you
[quoted text clipped - 40 lines]
> > > build the recordset. What do I do?
> > > Thanks for your time.
Chakey - 19 May 2008 13:10 GMT
I am still having trouble even after switching to cnn.ConnectionTimeout = 0.
I get this message when performing the query in the code I mentioned in my
last post:
"Run-time error '-2147217871 (80040e31)':
[Pervasive][ODBC Client Interface][LNA][Pervasive}{ODBC Engine
Interface]S1T00Timeout expired."
Pervasive is our database engine.
I am stumped.
> Try
> cnn.ConnectionTimout=0
[quoted text clipped - 43 lines]
> > > > build the recordset. What do I do?
> > > > Thanks for your time.
Ralph - 21 May 2008 17:01 GMT
Try this link:
http://www.tek-tips.com/viewthread.cfm?qid=1077071&page=1
> I am still having trouble even after switching to cnn.ConnectionTimeout = 0.
> I get this message when performing the query in the code I mentioned in my
[quoted text clipped - 53 lines]
> > > > > build the recordset. What do I do?
> > > > > Thanks for your time.