vb5 versus vb2008
- From: "Markus Diehl" <markus@xxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 13 May 2008 10:10:59 +0300
Hi,
was using this piece of source since long in VB5. Now we have to transfer it into VB2008 and getting a lot of compiler errors. I got mentioned, that DAO don't work in VB2008. Is there somebody out there who can assist me??
-----------------------------------------------------------------
sub test()
Dim dwBereich As dao.Workspace
Dim dwDatenbank As dao.Database
Dim dwTabelle As dao.Recordset
Dim ws As dao.Workspace
Set dwDatenbank = ws.OpenDatabase(DB_Path & DB_name)
dwTabelle = dwDatenbank.OpenRecordset("austria")
dwBereich.BeginTrans()
For I = 1 To 100
dwTabelle.AddNew()
dwTabelle![au_Datum] = Big_au_Datum(I)
dwTabelle![au_Mobile] = Big_au_Mobile(I)
dwTabelle![au_client] = Big_au_Kundennummer(I)
dwTabelle.Update()
Next I
dwBereich.CommitTrans()
dwTabelle.Close()
end sub
-----------------------------------------------------------
.
- Follow-Ups:
- Re: vb5 versus vb2008
- From: Ralph
- Re: vb5 versus vb2008
- Prev by Date: Re: ASP/ADO/VB.NET: How to update multiple datatables with typed datasets ?
- Next by Date: Re: vb5 versus vb2008
- Previous by thread: Re: Method '~' of object '~' failed error while opening ADODB connection in vb6
- Next by thread: Re: vb5 versus vb2008
- Index(es):
Relevant Pages
|
Loading