Public Function getPaymentStatusStringFromID(passedID As Long) As String ' getPaymentStatusStringFromID = "UnKnown" ' selectString = "Select [Description] From qryADrop_PayStatus Where [UseID] = " & passedID Set db = getCurrentDbC ' Dim rs As DAO.Recordset Set rs = db.OpenRecordset(selectString, dbOpenForwardOnly, dbReadOnly) ''''/////// Read Only /////// If rs.EOF Then Else ' getPaymentStatusStringFromID = Nz(rs!description, 0) ' End If ' rs.Close Set rs = Nothing End Function
is replaced by
Dim rs As DAO.Recordset Set rs = db.OpenRecordset(selectString, dbOpenForwardOnly, dbReadOnly) ''''/////// Read Only ///////
Dim rs As ADODB.Recordset Set rs = New ADODB.Recordset rs.Open selectString, CurrentProject.Connection, adOpenKeyset, adLockOptimistic
Gain unlimited access to on-demand training courses with an Experts Exchange subscription.Get Access
Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.
When asked, what has been your best career decision?
Deciding to stick with EE.
Being involved with EE helped me to grow personally and professionally.
We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE
Connect with Certified Experts to gain insight and support on specific technology challenges including: