V
vikash.verma
Hi All,
I have written a query in my QUERY with the name as "QueryCount".
Now i am calling the query in VBA by using the DoCmd.OpenQuery like this
DoCmd.OpenQuery "QueryCount", acViewNormal, acReadOnly
Inside QueryCount my query is like this ----- SELECT
Count(DelMastTemp.CustomerID) AS NumCount FROM DelMastTemp;
I get a value 20 ie NumCount =20, when i run my Application.But now i want
to display the value from the Application.I want to display the value from
my VB Code .But i am not getting it.
I tried assigning string name/varient/integer Type to the "DoCmd.OpenQuery
" but it gives an ERROR.
How to get the NumCount value in my Application is becoming a problem for
me.
If my approach is wrong then let me know or if there is any other way to
handle it.??
I am expecting mails from you all.
Hope to hear from you all
Regards,
Vikash
I have written a query in my QUERY with the name as "QueryCount".
Now i am calling the query in VBA by using the DoCmd.OpenQuery like this
DoCmd.OpenQuery "QueryCount", acViewNormal, acReadOnly
Inside QueryCount my query is like this ----- SELECT
Count(DelMastTemp.CustomerID) AS NumCount FROM DelMastTemp;
I get a value 20 ie NumCount =20, when i run my Application.But now i want
to display the value from the Application.I want to display the value from
my VB Code .But i am not getting it.
I tried assigning string name/varient/integer Type to the "DoCmd.OpenQuery
" but it gives an ERROR.
How to get the NumCount value in my Application is becoming a problem for
me.
If my approach is wrong then let me know or if there is any other way to
handle it.??
I am expecting mails from you all.
Hope to hear from you all
Regards,
Vikash