P
Paul Mendlesohn
I am looking up data in tables with 100k records and the module progresses
really slowly. I am using query defs to access the recordsets, perhaps this
is a slow way to do it, the code I am using is
strSQL = "PARAMETERS [PayerID] TEXT;"
strSQL = "SELECT * From SubscriptionMembers WHERE SubMemID
=[RecordID];"
Set qdf2 = CurrentDb.CreateQueryDef("", strSQL)
qdf2.Parameters("RecordID") = strSubMemID
Set rstSubs = qdf2.OpenRecordset
intPatientID= rstSubs.PAtientID
Is there a faster type of recordset to look up data, and if so how do I
write the WHERE clause (that's why I always use the query def procedure as
it's easy to write without all the '''')
Thanks
Paul
really slowly. I am using query defs to access the recordsets, perhaps this
is a slow way to do it, the code I am using is
strSQL = "PARAMETERS [PayerID] TEXT;"
strSQL = "SELECT * From SubscriptionMembers WHERE SubMemID
=[RecordID];"
Set qdf2 = CurrentDb.CreateQueryDef("", strSQL)
qdf2.Parameters("RecordID") = strSubMemID
Set rstSubs = qdf2.OpenRecordset
intPatientID= rstSubs.PAtientID
Is there a faster type of recordset to look up data, and if so how do I
write the WHERE clause (that's why I always use the query def procedure as
it's easy to write without all the '''')
Thanks
Paul