JPTL Posted April 15, 2003 Posted April 15, 2003 (edited) Hi, when converting a DAO project all Data based on a DataSource can´t be upgraded, code bellow, how can i menage this?, Thanks 4 helping If mess = CStr(MsgBoxResult.Yes) Then 'UPGRADE_ISSUE: Data property Data1.Recordset was not upgraded. Click for more: 'ms-help://MS.VSCC/commoner/redir/redirect.htm?keyword="vbup2069"' Me.Data1.Recordset.Delete() 'UPGRADE_ISSUE: Data property Data1.Recordset was not upgraded. Click for more: 'ms-help://MS.VSCC/commoner/redir/redirect.htm?keyword="vbup2069"' Me.Data1.Recordset.MoveFirst() Else 'nada End If Edited April 15, 2003 by JPTL Quote
Moderators Robby Posted April 16, 2003 Moderators Posted April 16, 2003 I would setup a new controls using all new ADO.NET methods, I'm not sure how the upgrade wizard implemented the rest of your data controls, but I'm certain it's not pretty. Quote Visit...Bassic Software
JPTL Posted April 16, 2003 Author Posted April 16, 2003 Humm...i see, the conversion looks Good, why?, because the only things that´s not converted was, Data.Recordset Methods and the Load Form method, but this last one is easy to get a solution. How can i handle this?, thanks;) Quote
Moderators Robby Posted April 16, 2003 Moderators Posted April 16, 2003 Can you post some of the code that pertains to Me.Data1.Recordset, because I have no idea how the wizard handled it. Quote Visit...Bassic Software
JPTL Posted April 16, 2003 Author Posted April 16, 2003 Ok, bellow is an example Public Sub dInserir_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles dInserir.Click Dim db As DAO.Database Dim rs As DAO.Recordset db = DAODBEngine_definst.Workspaces(0).OpenDatabase(letra) rs = db.OpenRecordset("Select Max(n_cliente) As MC From DEPOSITARIOS") 'UPGRADE_ISSUE: Data property Data1.Recordset was not upgraded. Click for more: 'ms-help://MS.VSCC/commoner/redir/redirect.htm? keyword="vbup2069"' Me.Data1.Recordset.AddNew() Me.Text1.Text = rs.Fields("MC").Value + 1 Me.Text2.Focus() End Sub OR THIS If mess = CStr(MsgBoxResult.Yes) Then Me.Data1.Recordset.Delete() Me.Data1.Recordset.MoveFirst() Else 'nada End If Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.