Hi,
I got wrong result When I open a query as recordset with code:
SQL for [qryA] is:
What really confuses me is that I only got problem when the where clause includes the expression field ([RTM]-[LoanV]). When I remove the expression or form control, for example, change to "WHERE ([RTM]>=[forms]![FrmRpt]![txtNHM1].[Value]);" or "WHERE (([RTM]-[LoanV])>=500;)", the result will be all right.
Any idea is appreciated. Thanks!
I got wrong result When I open a query as recordset with code:
Code:
Set qdf = db.QueryDefs("[qryA]")
For Each prm In qdf.Parameters
prm.Value = Eval(prm.name)
Next prm
Set rsB = qdf.OpenRecordset
Code:
SELECT [Account], ([RTM]-[LoanV]) AS [Mgncall],[RTM], LoanV FROM qry8_ChangeByGtor WHERE (([RTM]-[LoanV])>=[forms]![FrmRpt]![txtNHM1].[Value]);
Any idea is appreciated. Thanks!
Comment