C
Carl
I am an amateur. I bought some books and made a VB4 program using an Access
97 MDB database and MS DataGrid which gets data from the MDB. I use the
program more than any other because it keeps family medical records.
The program served me well thru Win 95, 98, 98SE and ME. Also an automatic
convert to VB6 along the way. I had Office 97 Pro and used Access 97 to
examine my MDB database, make changes if necessary, and compact the MDB
occasionally.
Then I bought a new computer with XP. I installed my program and it seems to
work OK.
I also installed Office 03 Pro, which has a new version of Access. Access 03
will open my MDB so I can read it but not alter it. Access 03 offers to
convert my MDB so it can be altered, but I am wary of doing that. I have now
forgotten most of what I knew about VB programming and don't want problems
that I cannot solve.
If I convert the MDB database, will my existing program still access it OK?
This is the sub that I use to connect to the database.
--------------------------
Public Sub SetConn(AdoCon As Adodc)
'Set Adodc connection string
With AdoCon
.ConnectionString = "Provider=Microsoft.Jet.OLEDB.3.51; " _
& "Data Source=C:\Program Files\Medical Record
Keeper\MedRec.mdb; " _
& "Persist Security Info=False"
.CommandType = adCmdText
.Visible = False
.BOFAction = adDoMoveFirst
.EOFAction = adDoMoveLast
End With
End Sub
97 MDB database and MS DataGrid which gets data from the MDB. I use the
program more than any other because it keeps family medical records.
The program served me well thru Win 95, 98, 98SE and ME. Also an automatic
convert to VB6 along the way. I had Office 97 Pro and used Access 97 to
examine my MDB database, make changes if necessary, and compact the MDB
occasionally.
Then I bought a new computer with XP. I installed my program and it seems to
work OK.
I also installed Office 03 Pro, which has a new version of Access. Access 03
will open my MDB so I can read it but not alter it. Access 03 offers to
convert my MDB so it can be altered, but I am wary of doing that. I have now
forgotten most of what I knew about VB programming and don't want problems
that I cannot solve.
If I convert the MDB database, will my existing program still access it OK?
This is the sub that I use to connect to the database.
--------------------------
Public Sub SetConn(AdoCon As Adodc)
'Set Adodc connection string
With AdoCon
.ConnectionString = "Provider=Microsoft.Jet.OLEDB.3.51; " _
& "Data Source=C:\Program Files\Medical Record
Keeper\MedRec.mdb; " _
& "Persist Security Info=False"
.CommandType = adCmdText
.Visible = False
.BOFAction = adDoMoveFirst
.EOFAction = adDoMoveLast
End With
End Sub