1

I have made the following query :

SELECT [tbl_Imp_tabel WBS WPE.Verantwrd], [tbl_Imp_tabel WBS WPE.WBS_Id], [tbl_Imp_tabel        WBS WPE.Koptekst], [tbl_Users.UserName], [tbl_Users.WPENaam]
FROM  [tbl_Imp_tabel WBS WPE]
INNER JOIN [tbl_Users]
ON tbl_Imp_tabel WBS WPE.Verantwrd = tbl_Users.WPENaam ;

Howver, my access tells me that i have a missing operator on the line :

ON tbl_Imp_tabel WBS WPE.Verantwrd = tbl_Users.WPENaam ;

Any idea how to solve this ?

Thanks in advance

Gutanoth
  • 842
  • 5
  • 20
  • 39

2 Answers2

1

You have missed square barckets around table name in ON clause

Try this

SELECT [tbl_Imp_tabel WBS WPE].[Verantwrd], [tbl_Imp_tabel WBS WPE].[WBS_Id], [tbl_Imp_tabel WBS WPE].[Koptekst], [tbl_Users.UserName], [tbl_Users.WPENaam]
FROM  [tbl_Imp_tabel WBS WPE]
INNER JOIN [tbl_Users]
ON [tbl_Imp_tabel WBS WPE].[Verantwrd] = tbl_Users.WPENaam ;
Vignesh Kumar A
  • 27,863
  • 13
  • 63
  • 115
1

You have forgotten square brackets around table name [tbl_Imp_tabel WBS WPE.Verantwrd] in ON clause. Usage of [ ] in SQL

SELECT [tbl_Imp_tabel WBS WPE.Verantwrd], [tbl_Imp_tabel WBS WPE.WBS_Id], [tbl_Imp_tabel        WBS WPE.Koptekst], [tbl_Users.UserName], [tbl_Users.WPENaam]
FROM  [tbl_Imp_tabel WBS WPE]
INNER JOIN [tbl_Users]
ON [tbl_Imp_tabel WBS WPE.Verantwrd] = tbl_Users.WPENaam ;
Community
  • 1
  • 1
Mudassir Hasan
  • 28,083
  • 20
  • 99
  • 133