Jump to content
Xtreme .Net Talk

Recommended Posts

Posted (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 by JPTL
Posted

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;)

Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...