report from a sub form help

andywhittle

New member
Local time
Today, 03:29
Joined
Sep 29, 2006
Messages
9
Hi

Can anybody else.

Refering to gromits database example

http://www.access-programmers.co.uk/forums/showthread.php?t=99353

I am trying to import the subform table into a report. I have tried

Dim stDocName as variant

stDocName = "Invoice Query"
DoCmd.OpenReport stDocName, acPreview, WhereCondition:=BuildFilter

This works ok if i want everything in the report, but if i change any of the variables i get:

Sytax error (missing operator) in expression

The build filter works ok normally when doing a search tho

Thanks for any help
 

Users who are viewing this thread

Back
Top Bottom