I'm trying to insert data into a Sybase table (set up with an ODBC connection). I can insert data just fine with a pass-through query that I've set up if I manually enter the values for the fields. However, I need to pull the values from a local Access table to insert into the Sybase table. When I try to run it this way, I get an error message stating: "ODBC -- call failed. Sybase ODBC Driver Adaptive Server Anywhere - Table 'tmpInsertContactsA' not found.
It makes it sound as if I can only refer to sybase tables within the query and not any of the local tables or queries. Is there a way to create a pass-through query where I can use local tables and insert into the ODBC tables?
I had originally linked the Sybase table with an ODBC connection -- the problem with that method is that when the table is linked, it converts the autonumber field to a number field -- which prohibits me from running an append query against it because it complains about null/duplicated key values (because it no longer autonumbers the key). So I was trying to find a work-around and found the pass-through which does preserve the autonumber aspect but isn't allowing me to reference a local Access table.
Any suggestions on how to handle this???
It makes it sound as if I can only refer to sybase tables within the query and not any of the local tables or queries. Is there a way to create a pass-through query where I can use local tables and insert into the ODBC tables?
I had originally linked the Sybase table with an ODBC connection -- the problem with that method is that when the table is linked, it converts the autonumber field to a number field -- which prohibits me from running an append query against it because it complains about null/duplicated key values (because it no longer autonumbers the key). So I was trying to find a work-around and found the pass-through which does preserve the autonumber aspect but isn't allowing me to reference a local Access table.
Any suggestions on how to handle this???