reports from form data

D

dave buckberry

this is the code on the load event
sSql = " SELECT Employees.[Clock Number], Employees.[First Names]
Employees.Surname, [Employee Status Codes].[Employee Status], [Employe
Activity].[Finish Event], [Employee Activity].[Operation Number]
[Employee Activity].[Resource Code], [Employee Activity].[Total Time]
[Employee Status Codes].[Employee Status Code], [Employe
Activity].[Start Event], [Employee Activity].[Batch Number]
[Employees].[Job Title]" & _
" FROM (Employees INNER JOIN [Employee Status Codes] O
Employees.[Employee Status Code] = [Employee Status Codes].[Employe
Status Code]) INNER JOIN [Employee Activity] ON Employees.[Cloc
Number] = [Employee Activity].[Clock Number]" & _
" WHERE [Employee Activity].[Start Event] Between #" & Text25 & "# An
#" & Text27 + 1 & "#"


'Set rs = db.OpenRecordset(sSql, dbOpenDynaset, dbSeeChanges
dbPessimistic)
Dim stDocName As String

stDocName = "qActiveEmployees"
DoCmd.OpenReport stDocName, acPreview, , sSql, acNormal


is there a way that i can use the same code to write a report from th
data that this sql gives me but not running a different query linked t
the repor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top