Getting the error "Expected: If or Select or Sub or Function or Type or With or enum or end of statement."
Regardless of how i change the code, i'm unable to get it to compile.
Code:
Set rs = CurrentDb.OpenRecordset("Select * From CashFlowSummary")
While rs.EOF = False
If Acct_Reference_id = Forms![Loan Details].[Acct_Reference_id] Then Analysis_type = "CashFlow"
Else: Analysis_type = "Collateral"
End If
rs.MoveNext
End While
Any assistance would be greatly appreciated.
Chris
P.S. I was able to get Do Until and Loop to work instead.