Avatar of mpitak
mpitak

asked on 

From LotusNotes to MDB

Hello !

I got a problem to write script for migrating data from lotusnotes to MDB file. my exsample script is as you may see below:

My problem is that if my table in MDB file has a additional field and this field's datatype is AutoNumber. when I try to run, it does not add new record to MDB file. But once I remove this Autonumber field, my script can add new record to MDB file.

Can anyone help to advise why it's so ?


 Dim result As New ODBCResultSet
     Dim con As New ODBCConnection
     Dim qry As New ODBCQuery
     Dim temp As String
     Set qry.Connection = con
     Set result.query = qry
     con.connectTo("PDR")
     qry.sql = "SELECT * FROM BOM"
     result.execute
     result.addrow
     Call result.Setvalue("PDRNo", "TEST3")
     result.updateRow
     Set result.query = Nothing
     result.close(DB_CLOSE)
     con.disconnect
Lotus IBM

Avatar of undefined
Last Comment
mpitak
ASKER CERTIFIED SOLUTION
Avatar of mbonaci
mbonaci
Flag of Croatia image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of mpitak
mpitak

ASKER

Marko,

Thanks for you advise. However, it will be troublesome to disable as this MDB file is also used by other VB.NET program. So this autonumber is used by that VB program as well.
Lotus IBM
Lotus IBM

Lotus Software produced the Lotus 1-2-3 spreadsheet program, and later developed Lotus Notes, a groupware and email system. Following its acquisition by IBM, the Notes and Domino client/server collaborative platform were expanded to include functions such as email, calendars, to-do lists, contacts management, teamrooms, discussion forums, file sharing, microblogging, instant messaging, blogs, and user directories. IBM also release SmartSuite, a comprehensive office suite, and followed that with Symphony, unrelated to the Lotus suite of the same name.

21K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo