M
Miro
I am trying to get my ID added from a people table in an access table
"MyContacts.mdb" i just added.
Its basically a contact file i created in access:
PK Person_ID - Unique - autoincrement
PersonName varchar(30)
so after I edit the screen on 'add' mode, i call this cod here:
PeopleBindingSource.EndEdit()
PeopleTableAdapter.Update(Me.MyDataDS.People)
'Do SCOPE_IDENTITY() SOMEHOW HERE
Me.MyDataDataDS.AcceptChanges()
I cannot figure out how to somehow add a new query to the
"PeopleTableAdapter" to return the ID.
SQL express seems to use the "Refresh the data table" option under advanced
options but this is not the case for jet. It does not have that option
available.
I know my other option is to re-fill the whole dataset ( there are not a lot
of contacts ) but I am trying to see how to use a scope_identity for an
access table - as this is all done behind the scenes for me in an sql
express table.
Thanks,
Miro
"MyContacts.mdb" i just added.
Its basically a contact file i created in access:
PK Person_ID - Unique - autoincrement
PersonName varchar(30)
so after I edit the screen on 'add' mode, i call this cod here:
PeopleBindingSource.EndEdit()
PeopleTableAdapter.Update(Me.MyDataDS.People)
'Do SCOPE_IDENTITY() SOMEHOW HERE
Me.MyDataDataDS.AcceptChanges()
I cannot figure out how to somehow add a new query to the
"PeopleTableAdapter" to return the ID.
SQL express seems to use the "Refresh the data table" option under advanced
options but this is not the case for jet. It does not have that option
available.
I know my other option is to re-fill the whole dataset ( there are not a lot
of contacts ) but I am trying to see how to use a scope_identity for an
access table - as this is all done behind the scenes for me in an sql
express table.
Thanks,
Miro