I'm currently working with a program that used to have an Access back end and is now in SQL. There is a form whose data is pulled from a table.
In the one with an Access backend, whenever you create a new record, it seems to assign itself an ID automatically, no where in the code is there a me.dirty or docmd.save (well, there are but they happen AFTER it seems to assign an ID). It seems to assign it after you've entered information in any of the text/combo boxes on the form, but there are no after updates that I can find.
Now, in the version with the SQL back end, where I've basically brought over the old code and debugged it, if I enter information and then do something like a if me.dirty it will still have no ID after I hit that code.
What does it do different when there is an SQL back end? The reason this is a problem is because on some of the combo boxes it runs some code that needs the ID of the current record, but in the SQL back end version it never seems to assign one.
Any insight would be appreciated.
In the one with an Access backend, whenever you create a new record, it seems to assign itself an ID automatically, no where in the code is there a me.dirty or docmd.save (well, there are but they happen AFTER it seems to assign an ID). It seems to assign it after you've entered information in any of the text/combo boxes on the form, but there are no after updates that I can find.
Now, in the version with the SQL back end, where I've basically brought over the old code and debugged it, if I enter information and then do something like a if me.dirty it will still have no ID after I hit that code.
What does it do different when there is an SQL back end? The reason this is a problem is because on some of the combo boxes it runs some code that needs the ID of the current record, but in the SQL back end version it never seems to assign one.
Any insight would be appreciated.