Forum Discussion
bbalzer
Feb 16, 2021Copper Contributor
Please help!!! Run-time error 3828 Cannot reference a table with a multi-valued field ...
I have a form that passes a string to a query. From the form, I want to convert the query results to a csv file. I have checked several posts on this subject and they don't seem to have any problem...
bbalzer
Feb 16, 2021Copper Contributor
So I guess I should delete the lookup fields? These fields are single value fields per record with no user entries. Would dropdown list eliminate the multi-value issue?
Any insights would be appreciated...
thanks
George_Hepworth
Feb 16, 2021Silver Contributor
Lookup fields fall into the same "sugar cube" category. We are talking about standard table design versus (what I think of as ) eye candy design, to continue with the "too sweet" metaphor.
Create related tables where appropriate with an appropriate one-to-many relationship and store only the Foreign Keys in the related table.
Another way to look at it is that things like MVFs and Lookups are closely tied to tables as interface objects rather than data storage objects. In reality, users shouldn't be looking at, or directly touching tables anyway.
I try not to be too dogmatic about it because I understand that everyone has to make such decisions for themselves. However, my recommendation is always going to be to stick as close as possible to solid table design principles.
- bbalzerFeb 16, 2021Copper Contributorthank you
- bbalzerFeb 17, 2021Copper Contributor
I went through the table and removed all of the lookup fields. I am still getting the same error message. What is confusing me is even before the lookup fields were removed and recreated, the query would retrieve the data and I could convert query results to an excel file manually and then manually save as a CSV with no problem, just not programmatically...any ideas?
- George_HepworthFeb 17, 2021Silver Contributor
The same error message even though there are no longer any MVF fields in the tables?