Hi All,
I am developing an application which has a VB 6.0 front-end and an Access 97 backend. I use a Shell command to execute a macro in Access which:
- deletes a table named SCHEDULE_STAGING
- copies SCHEDULE_STAGING_TEMPLATE and pastes it as SCHEDULE_STAGING
After that macro is run, I use SQL in the VB code to execute queries on SCHEDULE_STAGING. The problem is, I receive an error stating that "The Microsoft Database Engine could not find the object 'SCHEDULE_STAGING'" etc, yet when I step through to code to debug it, it works fine! I have encountered this error before with another Access database and I used a timer to pause the code but surely there is a better way to combat this problem.
Does anyone know of a function which waits until a process is finished before moving onto the next one? In my case, I need the app to wait until the new copy of SCHEDULE_STAGING is present before conducting queries on it.
Thanks in advance for any help y'all can offer on this matter. )
I am developing an application which has a VB 6.0 front-end and an Access 97 backend. I use a Shell command to execute a macro in Access which:
- deletes a table named SCHEDULE_STAGING
- copies SCHEDULE_STAGING_TEMPLATE and pastes it as SCHEDULE_STAGING
After that macro is run, I use SQL in the VB code to execute queries on SCHEDULE_STAGING. The problem is, I receive an error stating that "The Microsoft Database Engine could not find the object 'SCHEDULE_STAGING'" etc, yet when I step through to code to debug it, it works fine! I have encountered this error before with another Access database and I used a timer to pause the code but surely there is a better way to combat this problem.
Does anyone know of a function which waits until a process is finished before moving onto the next one? In my case, I need the app to wait until the new copy of SCHEDULE_STAGING is present before conducting queries on it.
Thanks in advance for any help y'all can offer on this matter. )