enrmpaga
04-27-2006, 11:28 AM
I'm using SQL/ASP, I'm trying to pull a record from one mdb table and copy it to another mdb table, but i'm having some problems.. here is my code:
Line 1>Sql_sel = "SELECT Top 1 CUSTID FROM cust ORDER by CUSTID DESC"
Line 2>CUSTID = Sql_sel
Line 3>response.write(CUSTID)
Line 1, CUSTID being the ID field, cust being the table which holds the records.
Line 3, is a test to see if it pulls the right data, unfortunately it doesn't infact where i was expecting to see the lastest CUSTID displayed it infact just displays Line 1 as i have written it. This mkaes me beleive that i have made a simple syntax error.. can anyone spot any faults?
Line 1>Sql_sel = "SELECT Top 1 CUSTID FROM cust ORDER by CUSTID DESC"
Line 2>CUSTID = Sql_sel
Line 3>response.write(CUSTID)
Line 1, CUSTID being the ID field, cust being the table which holds the records.
Line 3, is a test to see if it pulls the right data, unfortunately it doesn't infact where i was expecting to see the lastest CUSTID displayed it infact just displays Line 1 as i have written it. This mkaes me beleive that i have made a simple syntax error.. can anyone spot any faults?