L
Laurie
Hi,
I've used the VB Express upgrade feature to transform code from VB6 to
VB Express 2008
Part of my original code included:
<Code>
Dim RS As New ADODB.Recordset
Set RS = Nothing
RS.Open("SELECT DISTINCT GENUS FROM Plants ORDER by GENUS;", ogAccess)
</Code>
The translated code included:
<Code>
'UPGRADE_NOTE: Object RS may not be destroyed until it is garbage
collected. Click for more:
'ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="6E35BFF6-CD74-4B09-9689-3E1A43DF8969"'
RS= Nothing
</Code>
The referenced help indicates that I should Dispose of the RS, but RS
doesn't have a Dispose method.
What is the correct code to destroy the RS object?
Regards,
Laurie
I've used the VB Express upgrade feature to transform code from VB6 to
VB Express 2008
Part of my original code included:
<Code>
Dim RS As New ADODB.Recordset
Set RS = Nothing
RS.Open("SELECT DISTINCT GENUS FROM Plants ORDER by GENUS;", ogAccess)
</Code>
The translated code included:
<Code>
'UPGRADE_NOTE: Object RS may not be destroyed until it is garbage
collected. Click for more:
'ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="6E35BFF6-CD74-4B09-9689-3E1A43DF8969"'
RS= Nothing
</Code>
The referenced help indicates that I should Dispose of the RS, but RS
doesn't have a Dispose method.
What is the correct code to destroy the RS object?
Regards,
Laurie