Once again in need of help.
I have a db with articles linked to the articles of a supplier. 1 of our articles can come from more then one supplier. So to make up my order, i choose the supplier and our article number and want to look it up in the db holding the supplier articles.
eg.:
our supplier supl. art.
2001 suplier 1 thx36
2001 supplier 2 895568
2002 suplier 1 TXX895
so the result for supl. 1 with 2001 would be thx36.
When i put this in a query i get an error, to few parameters, expected is 1.
Here is the code:
strSQL = "SELECT tblArtikelKopLev.Artikel, tblArtikelKopLev.Leveranciernummer, tblArtikelKopLev.ArtikelLev, tblArtikelKopLev.OmschrijvingLev FROM tblArtikelKopLev" & _
" WHERE ((tblArtikelKopLev.Artikel = " & strArtikel & ") AND (tblArtikelKopLev.Leveranciernummer = " & strLevnummer & "));"
Anybody any idea?
Thx
I have a db with articles linked to the articles of a supplier. 1 of our articles can come from more then one supplier. So to make up my order, i choose the supplier and our article number and want to look it up in the db holding the supplier articles.
eg.:
our supplier supl. art.
2001 suplier 1 thx36
2001 supplier 2 895568
2002 suplier 1 TXX895
so the result for supl. 1 with 2001 would be thx36.
When i put this in a query i get an error, to few parameters, expected is 1.
Here is the code:
strSQL = "SELECT tblArtikelKopLev.Artikel, tblArtikelKopLev.Leveranciernummer, tblArtikelKopLev.ArtikelLev, tblArtikelKopLev.OmschrijvingLev FROM tblArtikelKopLev" & _
" WHERE ((tblArtikelKopLev.Artikel = " & strArtikel & ") AND (tblArtikelKopLev.Leveranciernummer = " & strLevnummer & "));"
Anybody any idea?
Thx