I am not getting a response from the .Recordcount in ADODB.Recordset
- From: "JohnRoy@xxxxxxxxxxxxx" <johnroy@xxxxxxxxxxxxx>
- Date: Sun, 13 Apr 2008 08:12:59 +0100
Hello
I am not getting a response from the .Recordcount in ADODB.Recordset
It opens the file ok and you can see the first record but the .Recordcount
shows -1
Help Please
Set rsEmail_BusinessType = New ADODB.Recordset
rsEmail_BusinessType.Open "Email_BusinessType_Table", ConStr_For_EmailData,
adOpenStatic, adLockOptimistic, adCmdTable
With rsEmail_BusinessType
..MoveFirst
If .RecordCount > 0 Then
Do Until .EOF = True
Combo1.AddItem !BusinessType
.MoveNext
Loop
End If
End With
rsEmail_BusinessType.Close
Set rsEmail_BusinessType = Nothing
.
- Follow-Ups:
- Re: I am not getting a response from the .Recordcount in ADODB.Recordset
- From: Dmitriy Antonov
- Re: I am not getting a response from the .Recordcount in ADODB.Recordset
- Prev by Date: Re: Trying to populate a Combo Box from SQL DB
- Next by Date: Re: I am not getting a response from the .Recordcount in ADODB.Recordset
- Previous by thread: Trying to populate a Combo Box from SQL DB
- Next by thread: Re: I am not getting a response from the .Recordcount in ADODB.Recordset
- Index(es):
Relevant Pages
|
Loading