boblarson
Smeghead
- Local time
- Today, 14:55
- Joined
- Jan 12, 2001
- Messages
- 32,040
First I'm trying to do this in the query. Here is the code I wrote:
Findings: [Com-Doc #2] + “ “& [Com-Doc #12-5] +” “& [Com-Doc #25]
This is the error I am getting: "The expression you entered contains invalid syntax"
When I put the same code in the countrol source in the Report with the = sign I get the same error. When I take away the = sign the error shows me the entire code I put there (Syntax error in query expression 'code.....).
When I put this code in the query I get only one finding when I know there are multiples. Note with or without the $ sign.
Findings: [Com-Doc #2] & Chr$(0)+[Com-Doc #36] & Chr$(0)+[Com-Doc # 37] & Chr$(0)
A couple of things - You don't use the $ with Chr anymore. That is OLD legacy code which exists just for backwards compatibility. Second, I don't know why you're trying to use Chr(0) anyway.
Can you upload a copy of your database with the table (and bogus data) and the query you are trying to use? You might even include the report (remember to include any extra tables that might be in the query or report as well). I think that would help us try to get down to it. I'm more of a visual, hands-on kind of guy when it comes to troubleshooting.