G
Guest
This pertains to an Access 2000 database. The "Database" type in the code below ("Dim dbNucFac as Database") is an unrecognized type. I think this is caused by failing to reference the correct "dll" from the "TOOLS\Reference" menu option but I can't remember the correct reference.
I would prefer using ADO (I am familiar with Visual Basic .Net) but I'm always having problems with "references". A little help (slap in the face to straighten me up) would be appreciated. Similar coding used to work in previous Access databases
=======CODE EXAMPLE===========
Sub IsotopeAncestor(
Dim dbNucFac As Databas
Dim rsIso As Recordset ' Isotopes recordse
Dim SqlTxt As Strin
SqlTxt = "SELECT Daughters.DID, Daughters.PARENTID, ISOTOPES.RN "
& "FROM ISOTOPES INNER JOIN Daughters ON ISOTOPES.ISOID = Daughters.PARENTID "
& "GROUP BY Daughters.DID, Daughters.PARENTID, ISOTOPES.RN ORDER BY ISOTOPES.RN
dbNucFac = CurrentD
Set rsIso = dbNucFac.openrecordset(SqlTxt
End Su
I would prefer using ADO (I am familiar with Visual Basic .Net) but I'm always having problems with "references". A little help (slap in the face to straighten me up) would be appreciated. Similar coding used to work in previous Access databases
=======CODE EXAMPLE===========
Sub IsotopeAncestor(
Dim dbNucFac As Databas
Dim rsIso As Recordset ' Isotopes recordse
Dim SqlTxt As Strin
SqlTxt = "SELECT Daughters.DID, Daughters.PARENTID, ISOTOPES.RN "
& "FROM ISOTOPES INNER JOIN Daughters ON ISOTOPES.ISOID = Daughters.PARENTID "
& "GROUP BY Daughters.DID, Daughters.PARENTID, ISOTOPES.RN ORDER BY ISOTOPES.RN
dbNucFac = CurrentD
Set rsIso = dbNucFac.openrecordset(SqlTxt
End Su