G
Guest
Hi All,
First please let me disclaim that I am not an access person, nor am I a sql
person. I work tier 3 support for an enterprise client, therefore it is
sometimes my job to figure out some things in waters I have never dipped my
toes in.
I have an application developed in Access 2000 which works just fine when
Access 2000 is preserved when upgrading the rest of office.
I have after many several hours narrowed down the exact lines which are
causing me grief. And here they are:
strTNO = Forms!Tasklog!TASKER_NO
dtOrigSusp = Forms!Tasklog!SUSPENSE
These two variables are called from these lines below which causes the
variables to populate from the form to populate the tables.
DoCmd.RunSQL "Insert into [TempNewTSS] select * from tasklog where
Tasker_no=strTNO"
DoCmd.RunSQL "update [TempNewTSS] set OrigSuspense = dtOrigSusp"
However, when I run these macros in Access 2003 with or without 2007 compat
pack, or when running in Access 2007, the variables do NOT populate, and the
user is prompted to provide the information manually in a msgbox like
windowed prompt.
Is there a syntactical change I can make, to make these variable
declarations operate in Office 2003/7 ?
Thank you
First please let me disclaim that I am not an access person, nor am I a sql
person. I work tier 3 support for an enterprise client, therefore it is
sometimes my job to figure out some things in waters I have never dipped my
toes in.
I have an application developed in Access 2000 which works just fine when
Access 2000 is preserved when upgrading the rest of office.
I have after many several hours narrowed down the exact lines which are
causing me grief. And here they are:
strTNO = Forms!Tasklog!TASKER_NO
dtOrigSusp = Forms!Tasklog!SUSPENSE
These two variables are called from these lines below which causes the
variables to populate from the form to populate the tables.
DoCmd.RunSQL "Insert into [TempNewTSS] select * from tasklog where
Tasker_no=strTNO"
DoCmd.RunSQL "update [TempNewTSS] set OrigSuspense = dtOrigSusp"
However, when I run these macros in Access 2003 with or without 2007 compat
pack, or when running in Access 2007, the variables do NOT populate, and the
user is prompted to provide the information manually in a msgbox like
windowed prompt.
Is there a syntactical change I can make, to make these variable
declarations operate in Office 2003/7 ?
Thank you