Pedro Janssen
pedro at plex.nl
Thu Feb 5 15:46:55 CST 2004
Hello group, i have problems with a code that i use to open a report with the value of field Code of the current record. I would like to use the following code: Private Sub cmdDymoEtiket_Click() Dim stDocName as String Dim strExp as string strExp = "[code] =" & Me![Code] stDocName = "EtiketqryDymo" DoCmd.OpenReport, acViewPreview, , strExp End sub When i use this i get an error: Syntax error (operator missing). How is this possible, i used this code many times before with forms. Pedro Janssen