Good day!
I'm having a problem with my program with regards of retrieving the data from the tables. I'm using VB 6 and Access 2007 as back end. I'm using the Data Environment SQL statement command when I tried to set more than two parameters it gaves me an error of:
"The specified field 'brandno' could refer to more than one table listed in the from clause of your SQL Statement"
Is there anyone who can help me? Your help is highly appreciated.
I'm having a problem with my program with regards of retrieving the data from the tables. I'm using VB 6 and Access 2007 as back end. I'm using the Data Environment SQL statement command when I tried to set more than two parameters it gaves me an error of:
"The specified field 'brandno' could refer to more than one table listed in the from clause of your SQL Statement"
Code:
select [charge form].*, [personal information].*, branch.*, brand.* from (([charge form] inner join [personal information] on [charge form].employeeno = [personal information].employeeno) inner join branch on [charge form].branchno = branch.branchno) inner join brand on [charge form].brandno = brand.brandno where datefrom = ? and dateto = ? and brandno = ? and branchno = ?
Comment