R
Rowland
Okay, complex, NOT!
I have a query that I run to get the sum of the amount
paid.
I need to take this sum ammount and use it in a form. I
tried executing the query string ring on the form in VBA,
but as I searched the internet on how to do this it
involved ADO and I am not using ADO (that I know of), it
is strickly access.
So I would like to know the syntax for extracting a value
from a query. Something like this
DoCmd.OpenQuery "qry_smAmtPd", acViewNormal, acReadOnly
payments = qry_smAmtPd.SummedValue.Value
DoCmd.Close acquery, "qry_smAmtPd"
I am looking for something that will do that, but the
above doesn't work.
thanks,
Rowland
I have a query that I run to get the sum of the amount
paid.
I need to take this sum ammount and use it in a form. I
tried executing the query string ring on the form in VBA,
but as I searched the internet on how to do this it
involved ADO and I am not using ADO (that I know of), it
is strickly access.
So I would like to know the syntax for extracting a value
from a query. Something like this
DoCmd.OpenQuery "qry_smAmtPd", acViewNormal, acReadOnly
payments = qry_smAmtPd.SummedValue.Value
DoCmd.Close acquery, "qry_smAmtPd"
I am looking for something that will do that, but the
above doesn't work.
thanks,
Rowland