W
WildlyHarry
I have a database that I use to capture records and create tables by date.
The current setup has 31 make table queries that are chosen by VBA code based
on the day of the month. I have decided to streamline my process and pass
sql language into a make table that creates a table with the correct name.
Part of this query relies on the "Mid" function to help parse some data in
certain fields. I created a separate database to do the development of
moving from 31 static queries to 1 query with variable sql passed from a
form. Now my new database gives me an error and states that 'Mid' is not
recognized as a built-in function. But the mid function works in the old
database. Any idea why it fails in one and works in the other? I checked
the "References" and they both have the same libraries selected. Thank you
in advance for you help.
The current setup has 31 make table queries that are chosen by VBA code based
on the day of the month. I have decided to streamline my process and pass
sql language into a make table that creates a table with the correct name.
Part of this query relies on the "Mid" function to help parse some data in
certain fields. I created a separate database to do the development of
moving from 31 static queries to 1 query with variable sql passed from a
form. Now my new database gives me an error and states that 'Mid' is not
recognized as a built-in function. But the mid function works in the old
database. Any idea why it fails in one and works in the other? I checked
the "References" and they both have the same libraries selected. Thank you
in advance for you help.