I’m working with a form for selecting flexible query criteria from a sample database which creates a temporary db to store two tables Criteria and TableFields. The coding is limited to the form itself. There is no external module.
Opening the form in the sample database generate no error. Opening it in my db generates the following error: Record source ‘Select “*” from rTableFields Union Select FieldName From rTableFiedls;” specificed on this form does not exist.
It does however create the linked tables in the current database and produce the desired list of tables/queries to use as the record source. I’m guessing the warning has to do in the order of execution in the procedure and that the warning was turned off in the sample database but for some reason isn’t in mine. Does this sound like a reasonable assumption? If so, how do I turn off the warning?
I’ve attached the code for the form’s procedure here FYI.
E