N
Noemi
Hi
I have the following sql in vba and it keeps getting the following error and
will not work.
Run-time error "3075", Syntax error in query expression '[tbl_Comments.[No]]'.
Any idea what i have done wrong
table is called Comments and fields are EnterDate, Comments, No
me!StaffID is a text box on a form
strWhere = "(tbl_Comments.[No])= " & Me!StaffID & ")"
DoCmd.RunSQL "SELECT [tbl_Comments.EnterDate], [tbl_Comments.Comments],
[tbl_Comments.[No]] " & _
"FROM [tbl_CasualsDetails] INNER JOIN [tbl_Comments] ON
[tbl_CasualsDetails.[No]] = [tbl_Comments.[No]]" & _
"WHERE " & strWhere & ""
Thanks
Noemi
I have the following sql in vba and it keeps getting the following error and
will not work.
Run-time error "3075", Syntax error in query expression '[tbl_Comments.[No]]'.
Any idea what i have done wrong
table is called Comments and fields are EnterDate, Comments, No
me!StaffID is a text box on a form
strWhere = "(tbl_Comments.[No])= " & Me!StaffID & ")"
DoCmd.RunSQL "SELECT [tbl_Comments.EnterDate], [tbl_Comments.Comments],
[tbl_Comments.[No]] " & _
"FROM [tbl_CasualsDetails] INNER JOIN [tbl_Comments] ON
[tbl_CasualsDetails.[No]] = [tbl_Comments.[No]]" & _
"WHERE " & strWhere & ""
Thanks
Noemi