I am trying to run a query in Access (2003) that requires a join of one field to the first 4 characters of another field. I guess I never tried to do this before, because when I do the query is successful but when I go back to design view i get "Microsoft Access can't represent the join expression ... in Design View"
The only way to get back to design view is to remove the VB command (Left() in this case). Is there any way around this that doesn't disable "design" view?
In the above sample, InvoiceNum and FormNumber are both text fields, and FormNumber is always 4 characters long
The only way to get back to design view is to remove the VB command (Left() in this case). Is there any way around this that doesn't disable "design" view?
Code:
SELECT Invoices.InvoiceNum, Forms.FormNumber, Forms.FormType
FROM Invoices LEFT JOIN Forms ON Left(Invoices.InvoiceNum, 4) = Forms.FormNumber;
In the above sample, InvoiceNum and FormNumber are both text fields, and FormNumber is always 4 characters long