I have a function that creates a text file and need to run it from the data macro. so then the evens can use it on the table.
How do I go about doing this?
I have a function that creates a text file and need to run it
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You don’t, as per our chat. Data macros even run outside of MS Access, if they used code within MS Access, this could not happen. They are tied to the database engine, which knows nothing about Access front-end.
You can run queries from a data macro AFAIK,
and it is possible to create a query to write to a file*, but you cannot run VBA.* I looked into this a little more and I find: “Queries that contain linked tables, action queries, and database references are not allowed in data macros.”