R
red6000
Hi, I have the following SQL:
SELECT Sum(TimeSpent) AS TotalTime
FROM Activities
WHERE (((Activities.WorkDate)=Forms!InputForm2!MainTimesheet.Form!WorkDate)
And ((Activities.CSTRName)=Forms!InputForm2!MainTimesheet.Form!EmployeeID));
As you can see, it returns a single column, single row answer.
Waht I would like todo is attach this result to a text box on a form.
I assume I need to do this thru VBA, but how? What is teh VBA equivalent of
the SQL?
Thanks.
SELECT Sum(TimeSpent) AS TotalTime
FROM Activities
WHERE (((Activities.WorkDate)=Forms!InputForm2!MainTimesheet.Form!WorkDate)
And ((Activities.CSTRName)=Forms!InputForm2!MainTimesheet.Form!EmployeeID));
As you can see, it returns a single column, single row answer.
Waht I would like todo is attach this result to a text box on a form.
I assume I need to do this thru VBA, but how? What is teh VBA equivalent of
the SQL?
Thanks.