Aziz,
Have a look at these links
Net
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlr
fsystemguidclasstopic.asp
SQL server
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/tsqlref/ts_ua-u
z_6dyq.asp
I hope this helps,
Cor
> Where's the GUID? If I go into the XML Designer (the one where you can
> drag and drop to create relationsips between tables) I cannot find it
> in the list of types, the closest I can find is ID, IDREF, IDREFS.
>
> Also, if I do use this GUID, can I still keep my Database type a
> autonumber (it's an access file) or will it have to become a number?
Aziz - 07 Apr 2006 12:24 GMT
Thanks Cor, but I managed to fix it using David Sceppa's code:
daOrders.Update(dsTurbobraze, "Orders")
AddHandler daOrders.RowUpdated, AddressOf HandleRowUpdated
Private Sub HandleRowUpdated(ByVal sender As Object, ByVal e As
OleDb.OleDbRowUpdatedEventArgs)
If e.Status = UpdateStatus.Continue AndAlso e.StatementType =
StatementType.Insert Then
e.Row("OrderID") =
Int32.Parse(cmdGetIdentity.ExecuteScalar().ToString())
e.Row.AcceptChanges()
Debug.WriteLine(e.ToString)
End If
End Sub
Very useful.