I've only just been introduced to Pass Through Queries. I understand that they use the native SQL of the ODBC database they query. I am editing existing queries to make them more flexible. This particular application was set up to have the user open up the query in a SQL window, edit dates and Vendor ID, then save, close and run the query which I thought rather odd. I want to drop some form parameters in there instead such as
Original: VendorID = '0007060391')
New: VendorID = Forms!frmNewMonth!cboVendor
but I keep getting ODBC call failed errors. My solution has been to created a formatted string in VBA and update the query def with it. This is way more complex, but seems like the only option.
Any suggestions?