lookingforK
Registered User.
- Local time
- Today, 15:57
- Joined
- Aug 29, 2012
- Messages
- 48
How to solve error 3828 caused by using a multivalued field & parameters in query?
Hi,
I am using VBA with MS Access 2007 to export data from a query to MS Excel 2007.
I use {DoCmd.TransferSpreadsheet acExport, , ...} to export data.
But I get "Run-time error 3828", that is: Cannot reference a table with a multi-valued field using an IN clause that refers to another database.
I test the VBA code many rounds, and find the cause is:
* Can't use the 2 parameters (that come from 2 combo boxes on a form and are used as a selection criterion) and the multi-valued field in the query at the same time.
In other words, when I just use the 2 parameters after removing the multi-valued field (or just use the multi-valued field after removing the 2 parameters), the VBA running is gonna be fine.
What's wrong with this?
How can I use the parameters and the multi-valued field at the same time when running the VBA?:banghead:
Thank you.
Hi,
I am using VBA with MS Access 2007 to export data from a query to MS Excel 2007.
I use {DoCmd.TransferSpreadsheet acExport, , ...} to export data.
But I get "Run-time error 3828", that is: Cannot reference a table with a multi-valued field using an IN clause that refers to another database.
I test the VBA code many rounds, and find the cause is:
* Can't use the 2 parameters (that come from 2 combo boxes on a form and are used as a selection criterion) and the multi-valued field in the query at the same time.
In other words, when I just use the 2 parameters after removing the multi-valued field (or just use the multi-valued field after removing the 2 parameters), the VBA running is gonna be fine.
What's wrong with this?
How can I use the parameters and the multi-valued field at the same time when running the VBA?:banghead:
Thank you.