V
vikash.verma
Hi All
I have written an application where in i need to call a FORM,MACRO and then
a VBA.
Inside a Macro an Action RunCode is written which in turn calls a VBA code
written below
intValue = DLookup("NumCount", "Query1Test")
This query has a Where condition
Query1Test:
SELECT Count(*) AS NumCount FROM DelMastTemp
WHERE (((DelMastTemp.CustomerID)=Forms!Forms_DAR!Driver_Control.Value) AND
(DelMastTemp.StartDate=Forms!Forms_DAR!StartDate_Control.Value));
But this Where condition value is being passed frm my FORM to this Query.
If i run the Query alone i get a Parameter Value in that i pass the data nd
i get the Resul.
But when i run through this Form it throws an exception.I know the reason
behind it .The VALUE in the query is not being passed from the FORM.How nd
where should i give my WHERE Condition so that my query works.
Shall i have to give the where condition inside the DLookup() or HOW?
I am hoping to receive mails frm u all.
Regards
Vikash
I have written an application where in i need to call a FORM,MACRO and then
a VBA.
Inside a Macro an Action RunCode is written which in turn calls a VBA code
written below
intValue = DLookup("NumCount", "Query1Test")
This query has a Where condition
Query1Test:
SELECT Count(*) AS NumCount FROM DelMastTemp
WHERE (((DelMastTemp.CustomerID)=Forms!Forms_DAR!Driver_Control.Value) AND
(DelMastTemp.StartDate=Forms!Forms_DAR!StartDate_Control.Value));
But this Where condition value is being passed frm my FORM to this Query.
If i run the Query alone i get a Parameter Value in that i pass the data nd
i get the Resul.
But when i run through this Form it throws an exception.I know the reason
behind it .The VALUE in the query is not being passed from the FORM.How nd
where should i give my WHERE Condition so that my query works.
Shall i have to give the where condition inside the DLookup() or HOW?
I am hoping to receive mails frm u all.
Regards
Vikash