M
Mark
Hello all,
I have 2 tables that I want to do a join query on. Both fields in the table
are text, but with numeric data. On one table the data has 2 leading zeros
and on the other this is omitted.
What is the best way to join these two fields? Is it with a like statement?
Here what I have been trying, but getting errors..
vSql = "select * from tbImport"
Set db = CurrentDb()
Set rs = db.OpenRecordset(vSql)
Do While Not rs.EOF
vSql1 = "Select sku,sku_type, sku_desc from viaware_pm_f where sku_type =
""NORM"" and sku like rs!PartNum"
Set db = CurrentDb()
Set rs = db.OpenRecordset(vSql1)
I get error that say’s “To few parameter’s. Expect 1†this is right after
the last open recordset. Am I going about it the right way, and if so what
is wrong with this code?
I have 2 tables that I want to do a join query on. Both fields in the table
are text, but with numeric data. On one table the data has 2 leading zeros
and on the other this is omitted.
What is the best way to join these two fields? Is it with a like statement?
Here what I have been trying, but getting errors..
vSql = "select * from tbImport"
Set db = CurrentDb()
Set rs = db.OpenRecordset(vSql)
Do While Not rs.EOF
vSql1 = "Select sku,sku_type, sku_desc from viaware_pm_f where sku_type =
""NORM"" and sku like rs!PartNum"
Set db = CurrentDb()
Set rs = db.OpenRecordset(vSql1)
I get error that say’s “To few parameter’s. Expect 1†this is right after
the last open recordset. Am I going about it the right way, and if so what
is wrong with this code?