I wish to print part of the current record (not a print screen format) from an Access 2000 form. Here is part of the code:
1 Dim StrDocName As String
2 Dim StrWhere As String
3 StrDocName = "CurrentRecReport"
** the field CustomerNum is a numeric,AutoNumber field
4 StrWhere = Str("CustomerNum]="
& me!CustomerNum
5 DoCmd.OpenReport StrDocName,acPreview, StrWhere
I know there is an error in line 4. What should the correct code be? Any help would be appreciated.
David
1 Dim StrDocName As String
2 Dim StrWhere As String
3 StrDocName = "CurrentRecReport"
** the field CustomerNum is a numeric,AutoNumber field
4 StrWhere = Str("CustomerNum]="
5 DoCmd.OpenReport StrDocName,acPreview, StrWhere
I know there is an error in line 4. What should the correct code be? Any help would be appreciated.
David