-
1
- #1
Good DAy,<br><br>I am attempting to execute a query within VB6, which is using the MS Access 2000 database, without any luck. I am looking to multiply two values, each of which is in a different table (each table has just the one record, one field, and each are of the same numerical data type). The query runs within Access 2000 without a problem but VB6 cannot run it (without an error message). I am having a problem with multiple tables in action queries within VB6, I cannot attach the two tables by a common field (primary and foreign key). Other action queries within the same sub-routine below, which access one table only, run fine within VB6. The query as it is in VB6 is attached below:<br><br>sPath = "c:\Program Files\management\competition\competition.mdb"<br>Set daoDB36 = DBEngine(0).OpenDatabase(sPath)<br><br>daoDB36.Execute "INSERT INTO MembRet3 (Duplicates) SELECT(MembRet2.Duplicates/MembDup1.MembDup) As ttt From MembRet2, MembDup1"<br><br>I would appreciate it if someone could let me know what I can do to run the query above.<br><br>Regards<br><br>